Module io.helidon.nima.webclient
Package io.helidon.nima.webclient.http1
Class Http1Client.Http1ClientBuilder
java.lang.Object
io.helidon.nima.webclient.WebClient.Builder<Http1Client.Http1ClientBuilder,Http1Client>
io.helidon.nima.webclient.http1.Http1Client.Http1ClientBuilder
- All Implemented Interfaces:
Builder<Http1Client.Http1ClientBuilder,,Http1Client> Supplier<Http1Client>
- Enclosing interface:
Http1Client
public static class Http1Client.Http1ClientBuilder
extends WebClient.Builder<Http1Client.Http1ClientBuilder,Http1Client>
Builder for
Http1Client.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.connectionQueueSize(int connectionQueueSize) Configure the maximum allowed size of the connection queue.maxHeaderSize(int maxHeaderSize) Configure the maximum allowed header size of the response.maxStatusLineLength(int maxStatusLineLength) Configure the maximum allowed length of the status line from the response.mediaContext(MediaContext mediaContext) Configure the defaultMediaContext.sendExpect100Continue(boolean sendExpect100Continue) Sets whether Expect-100-Continue header is sent to verify server availability for a chunked transfer.validateHeaders(boolean validateHeaders) Sets whether the header format is validated or not.Methods inherited from class io.helidon.nima.webclient.WebClient.Builder
baseUri, baseUri, channelOptions, dnsAddressLookup, dnsResolver, tls, tls
-
Method Details
-
maxHeaderSize
Configure the maximum allowed header size of the response.- Parameters:
maxHeaderSize- maximum header size- Returns:
- updated builder
-
maxStatusLineLength
Configure the maximum allowed length of the status line from the response.- Parameters:
maxStatusLineLength- maximum status line length- Returns:
- updated builder
-
sendExpect100Continue
Sets whether Expect-100-Continue header is sent to verify server availability for a chunked transfer.Defaults to
true.- Parameters:
sendExpect100Continue- whether Expect:100-Continue header should be sent on chunked transfers- Returns:
- updated builder
-
validateHeaders
Sets whether the header format is validated or not.Defaults to
true.- Parameters:
validateHeaders- whether header validation should be enabled- Returns:
- updated builder
-
mediaContext
Configure the defaultMediaContext.- Parameters:
mediaContext- media context for this client- Returns:
- updated builder
-
connectionQueueSize
Configure the maximum allowed size of the connection queue.- Parameters:
connectionQueueSize- maximum connection queue size- Returns:
- updated builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
-