Type alias ServerMiddleware

ServerMiddleware: ((request, response, next) => any)

Describes a middleware for an server rendered page.

Type declaration

    • (request, response, next): any
    • Parameters

      • request: IncomingMessage & {
            cookies: NextApiRequestCookies;
        }

        The request context.

      • response: ServerResponse

        The response context.

      • next: MiddlewareNextFunction

        The next function.

      Returns any

Generated using TypeDoc