Type alias Middleware<TRequest, TResponse>
Middleware<TRequest, TResponse>: ((this, request, response, next) => void)
Type Parameters
-
TRequest extends IncomingMessage = IncomingMessage
-
TResponse extends ServerResponse = ServerResponse
Type declaration
-
- (this, request, response, next): void
-
Parameters
-
this: void
-
request: TRequest
-
response: TResponse
-
Returns void
Supported HTTP request type.