Module jls.net.http.handler.ProxyHttpHandler

Provide a simple HTTP handler that proxies requests.

See https://tools.ietf.org/html/rfc7230 and https://tools.ietf.org/html/rfc7231

Class ProxyHttpHandler

proxyHttpHandler:initialize () Creates a proxy HttpHandler.
proxyHttpHandler:configureForward ([allowConnect]) Configures this proxy to forward requests.
proxyHttpHandler:configureReverse ([baseUrl]) Configures this proxy as reverse proxy.


Class ProxyHttpHandler

A ProxyHttpHandler class.
proxyHttpHandler:initialize ()
Creates a proxy HttpHandler.
proxyHttpHandler:configureForward ([allowConnect])
Configures this proxy to forward requests. This is the default proxy mode allowing monitoring and filtering.

Parameters:

  • allowConnect boolean true to allow connect method. (optional)

Returns:

    ProxyHttpHandler this proxy for chaining.
proxyHttpHandler:configureReverse ([baseUrl])
Configures this proxy as reverse proxy. This mode allows to serve distinct services on the same server or server distinct servers on the same endpoint.

Parameters:

  • baseUrl string a base URL to forward requests to. (optional)

Returns:

    ProxyHttpHandler this proxy for chaining.
generated by LDoc 1.4.6 Last updated 2022-01-22 16:32:56