Function dispatchByMethod

  • Dispatches request processing by HTTP request method.

    Type Parameters

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

      Supported HTTP route processing means.

    Parameters

    • methods: DispatchMethods<TMeans>

      A map of request processing handlers corresponding to HTTP request methods.

    Returns RequestHandler<TMeans>

    New HTTP request processing handler.

Generated using TypeDoc