public final class HttpClientOptions extends ClientOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientOptions.Builder |
afterChannelInit, afterNettyContextInit, DEFAULT_PORT| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptGzip()
Returns true when gzip support is enabled otherwise - false
|
java.lang.String |
asDetailedString() |
java.lang.String |
asSimpleString() |
static HttpClientOptions.Builder |
builder()
Create a new HttpClientOptions.Builder
|
protected io.netty.handler.ssl.SslContext |
defaultSslContext()
Default Ssl context if none configured or null;
|
HttpClientOptions |
duplicate()
Return a copy of all options and references such as
NettyOptions.Builder.onChannelInit(Predicate). |
java.net.InetSocketAddress |
getRemoteAddress(java.net.URI uri)
Return a new
InetSocketAddress from the URI. |
io.netty.handler.ssl.SslHandler |
getSslHandler(io.netty.buffer.ByteBufAllocator allocator,
reactor.util.function.Tuple2<java.lang.String,java.lang.Integer> sniInfo)
Return a new eventual
SslHandler, optionally with SNI activated |
java.lang.String |
toString() |
builder, createInetSocketAddress, get, getAddress, getPoolResources, getProxyOptions, useDatagramChannel, useProxy, useProxyafterChannelInit, afterNettyContextInit, getLoopResources, isSecure, onChannelInit, preferNative, sslCloseNotifyFlushTimeoutMillis, sslCloseNotifyReadTimeoutMillis, sslContext, sslHandshakeTimeoutMillispublic static HttpClientOptions.Builder builder()
public HttpClientOptions duplicate()
NettyOptionsNettyOptions.Builder.onChannelInit(Predicate). Further option uses on the returned builder will
be fully isolated from this option builder.duplicate in class ClientOptionspublic final java.net.InetSocketAddress getRemoteAddress(java.net.URI uri)
InetSocketAddress from the URI.
If the port is undefined (-1), a default port is used (80 or 443 depending on
whether the URI is secure or not). If a proxy is used, the
returned address is provided unresolved.
uri - URI to extract host and port information fromInetSocketAddresspublic io.netty.handler.ssl.SslHandler getSslHandler(io.netty.buffer.ByteBufAllocator allocator,
reactor.util.function.Tuple2<java.lang.String,java.lang.Integer> sniInfo)
NettyOptionsSslHandler, optionally with SNI activatedgetSslHandler in class NettyOptions<io.netty.bootstrap.Bootstrap,ClientOptions>allocator - ByteBufAllocator to allocate for packet storagesniInfo - Tuple2 with hostname and port for SNI (any null will skip SNI).SslHandler with SNI activatedpublic boolean acceptGzip()
protected io.netty.handler.ssl.SslContext defaultSslContext()
NettyOptionsdefaultSslContext in class NettyOptions<io.netty.bootstrap.Bootstrap,ClientOptions>SslContextpublic java.lang.String asSimpleString()
asSimpleString in class ClientOptionspublic java.lang.String asDetailedString()
asDetailedString in class ClientOptionspublic java.lang.String toString()
toString in class ClientOptions