stack

Home > @infiniteobjects/express-server > Middleware

Middleware class

Preprocess Middleware

Signature:

export declare class Middleware 

Properties

Property Modifiers Type Description
compressResponses static RequestHandler Compress responses
crossOrigin static RequestHandler Cross domain shenanigans
logRequests static RequestHandler Logs the requests
parseJson static RequestHandler Json Parser
parseUrlEncoded static RequestHandler URL Encoded Parser
requestStart static RequestHandler Allows us to calculate the request duration
sentryContext static RequestHandler Sentry context
sentryTracing static RequestHandler Sentry Tracing
serverHeaders static RequestHandler Adds Server ID data to the response
setRequestId static RequestHandler Sets the reqId property on the request
setRequestIp static RequestHandler Parses the given IP as a IPV4