Type alias ServerMiddleware
ServerMiddleware: ((request, response, next) => any)
Type declaration
- (request, response, next): any
Parameters
- request: IncomingMessage & {
cookies: NextApiRequestCookies;
} - response: ServerResponse
- next: MiddlewareNextFunction
Returns any
Describes a middleware for an server rendered page.