Function requestHandler

  • Builds a request processing handler that delegates request processing to other handlers.

    Iterates over the given handlers in order and delegates the request processing to them. It stops when either response is generated, an error thrown, or no handlers left.

    Type Parameters

    • TMeans

      A type of request processing means handlers expect.

    Parameters

    • handlers: RequestHandler<TMeans> | Iterable<RequestHandler<TMeans>>

      Either single handler or iterable of handlers to delegate request processing to.

    Returns RequestHandler<TMeans>

    Request processing handler.

Generated using TypeDoc