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 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. |
java.lang.String |
toString() |
builder, createInetSocketAddress, get, getAddress, getPoolResources, getProxyOptions, useDatagramChannel, useProxy, useProxyafterChannelInit, afterNettyContextInit, getLoopResources, getSslHandler, 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 boolean acceptGzip()
protected SslContext defaultSslContext()
NettyOptionsdefaultSslContext in class NettyOptions<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