Function middleware

  • Involves the given middleware into HTTP request processing.

    Type Parameters

    • TInput extends HttpMeans<IncomingMessage, ServerResponse<IncomingMessage>>

      A type of input HTTP request processing means.

    Parameters

    • middleware: Middleware<TInput["request"], TInput["response"]>

      Middleware to apply.

    Returns RequestCapability<TInput>

    New request processing capability that processes HTTP requests by the given middleware.

Generated using TypeDoc