@FunctionalInterface public interface OriginRequestProvider
ProxyContext
.Modifier and Type | Method and Description |
---|---|
Future<HttpClientRequest> |
create(ProxyContext proxyContext)
Create the
HttpClientRequest to the origin server for a given ProxyContext . |
static OriginRequestProvider |
fixedAddress(int port,
String host)
Creates a simple provider for a fixed
port and host . |
static OriginRequestProvider |
fixedAddress(SocketAddress address)
Creates a simple provider for a fixed
SocketAddress . |
static OriginRequestProvider |
selector(java.util.function.Function<ProxyContext,Future<SocketAddress>> selector)
Creates a provider that selects the origin server based on
ProxyContext . |
static OriginRequestProvider fixedAddress(int port, String host)
port
and host
.static OriginRequestProvider fixedAddress(SocketAddress address)
SocketAddress
.static OriginRequestProvider selector(java.util.function.Function<ProxyContext,Future<SocketAddress>> selector)
ProxyContext
.Future<HttpClientRequest> create(ProxyContext proxyContext)
HttpClientRequest
to the origin server for a given ProxyContext
.proxyContext
- the context of the proxied request and responseHttpClientRequest
or failedCopyright © 2025 Eclipse. All rights reserved.