Interface HttpForwarding

HTTP proxy forwarding capability.

Extracts trusted forwarding information from HTTP request and updates HTTP request accordingly.

The proxy forwarding information is not trusted by default.

Hierarchy

Methods

Methods

  • Combines this capability with the next one.

    Type Parameters

    • TNext

      A type of extension to request processing means applied by next capability.

    Parameters

    • next: RequestCapability<HttpMeans<IncomingMessage, ServerResponse<IncomingMessage>> & object, TNext>

      Next capability that receives requests modified by this capability.

    Returns RequestCapability<HttpMeans<IncomingMessage, ServerResponse<IncomingMessage>>, object & TNext>

    New request processing capability that applies modifications to request by this capability first, and then - by the next one.

    See

    RequestCapability.combine

  • Provides request processing capability to the given handler.

    Builds request processing handler that modifies request and delegates to target handler.

    Type Parameters

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

      A type of request processing means expected by constructed handler.

    Parameters

    • handler: RequestHandler<TMeans & object>

      Request processing handler that will receive modified request context.

    Returns RequestHandler<TMeans>

    New request processing handler.

Generated using TypeDoc