Package | Description |
---|---|
bayou.http |
Http server.
|
Modifier and Type | Method and Description |
---|---|
HttpClientConf |
HttpClientConf.autoDecompress(boolean autoDecompress)
Whether to automatically decompress response bodies.
|
HttpClientConf |
HttpClientConf.autoRedirectMax(int autoRedirectMax)
Max number of redirects that will be followed.
|
HttpClientConf |
HttpClientConf.await100Timeout(Duration await100Timeout)
Timeout for awaiting "100 Continue" responses.
|
HttpClientConf |
HttpClientConf.clone()
Return an independent copy of this object.
|
HttpClientConf |
HttpClientConf.cookieStorage(CookieStorage cookieStorage)
Storage for cookies.
|
HttpClientConf |
HttpClientConf.keepAliveTimeout(Duration keepAliveTimeout)
Timeout for keep-alive connections.
|
HttpClientConf |
HttpClientConf.proxy(HttpProxy proxy)
Http proxy.
|
HttpClientConf |
HttpClientConf.proxy(String host,
int port)
Http proxy.
|
HttpClientConf |
HttpClientConf.requestHeader(String name,
String value)
An an additional header for every outgoing request.
|
HttpClientConf |
HttpClientConf.responseHeadFieldMaxLength(int responseHeadFieldMaxLength)
Max length for any header value in a response.
|
HttpClientConf |
HttpClientConf.responseHeadTotalMaxLength(int responseHeadTotalMaxLength)
Max length of a response head.
|
HttpClientConf |
HttpClientConf.selectorIds(int... selectorIds)
Ids of selectors for HttpClient.
|
HttpClientConf |
HttpClientConf.socketConf(ConsumerX<SocketChannel> action)
Action to configure each TCP socket.
|
HttpClientConf |
HttpClientConf.sslContext(SSLContext sslContext)
SSLContext for SSL connections.
|
HttpClientConf |
HttpClientConf.sslEngineConf(ConsumerX<SSLEngine> action)
Action to configure each SSLEngine.
|
HttpClientConf |
HttpClientConf.trafficDump(Consumer<CharSequence> trafficDump)
Where to dump http traffic, for debugging purpose.
|
HttpClientConf |
HttpClientConf.tunnels(TcpTunnel... tunnels)
Tcp tunnels for every HTTP connection.
|
HttpClientConf |
HttpClientConf.userPass(String host,
String username,
String password)
Username/password for a single host.
|
HttpClientConf |
HttpClientConf.userPassSupplier(Function<TcpAddress,Async<UserPass>> userPassSupplier)
Username/password supplier for server authentications.
|
Constructor and Description |
---|
HttpClient(HttpClientConf conf)
Create an HttpClient with the configuration.
|