Type alias Middleware<Request, Response>

Middleware<Request, Response>: ((req, res, next) => void)

Type Parameters

  • Request extends IncomingMessage = IncomingMessage

  • Response extends ServerResponse = ServerResponse

Type declaration

    • (req, res, next): void
    • Parameters

      • req: Request
      • res: Response
      • next: ((errOrEscape?) => void)
          • (errOrEscape?): void
          • Parameters

            • Optional errOrEscape: any

            Returns void

      Returns void

Generated using TypeDoc