-
Returns a new CookieStore which will check the path parameter of
cookies when deciding to add them to a request.
Returns a new CookieStore which does not check the path parameter of
cookies when deciding to add them to a request.
Add a handler which will be called if an exception is thrown when parsing
cookies - i.e.
Set a cookie store which will be used for all HTTP requests on the
resulting HttpClient (unless overriddeen in RequestBuilder).
Set a cookie store which will be updated from Set-Cookie headers in the
response, and which will decorate the request with any Cookies it has
that match the request URL.
HttpClient(boolean compress,
int maxChunkSize,
int threads,
int maxInitialLineLength,
int maxHeadersSize,
boolean followRedirects,
CharSequence userAgent,
List<RequestInterceptor> interceptors,
Iterable<HttpClientBuilder.ChannelOptionSetting<?>> settings,
boolean send100continue,
CookieStore cookies,
Duration timeout,
io.netty.handler.ssl.SslContext sslContext,
io.netty.resolver.AddressResolverGroup<?> resolver,
io.netty.channel.nio.NioEventLoopGroup threadPool,
int maxRedirects,
NettyContentMarshallers marshallers,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Create a new HTTP client; prefer HttpClient.builder() where possible, as
that is much simpler.HttpClientBuilder will remain backward compatible;
this constructor may be changed if new parameters are needed (all state
of an HTTP client is immutable and must be passed to the constructor).