- All Superinterfaces:
HttpClientConfig
,HttpConfigBase
,Prototype.Api
,Prototype.Factory<WebClient>
- All Known Implementing Classes:
WebClientConfig.BuilderBase.WebClientConfigImpl
WebClient configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forWebClient
.static class
WebClientConfig.BuilderBase<BUILDER extends WebClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends WebClientConfig> Fluent API builder base forWebClient
. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebClientConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static WebClientConfig.Builder
builder
(WebClientConfig instance) Create a new fluent API builder from an existing instance.static WebClientConfig
create()
Create a new instance with default values.static WebClientConfig
Deprecated.static WebClientConfig
Create a new instance from configuration.default ClientRequestHeaders
Default headers as a headers object.Configuration of client protocols.List of HTTP protocol IDs by order of preference.Methods inherited from interface io.helidon.webclient.api.HttpClientConfig
baseFragment, baseQuery, baseUri, connectionCacheSize, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, relativeUris, sendExpectContinue, services, shareConnectionCache, socketOptions, writeBufferSize
Methods inherited from interface io.helidon.webclient.api.HttpConfigBase
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tls
Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
protocolConfigs
List<ProtocolConfig> protocolConfigs()Configuration of client protocols.- Returns:
- client protocol configurations
-
protocolPreference
List of HTTP protocol IDs by order of preference. If left empty, all discovered providers will be used, ordered by weight.For example if both HTTP/2 and HTTP/1.1 providers are available (considering HTTP/2 has higher weights), for ALPN we will send h2 and http/1.1 and decide based on response. If TLS is not used, we would attempt an upgrade (or use prior knowledge if configured in
protocolConfigs()
).- Returns:
- list of HTTP protocol IDs in order of preference
-
defaultRequestHeaders
Default headers as a headers object. Creates a new instance for each call, so the returned value can be safely mutated.- Returns:
- default headers
-
create(io.helidon.config.Config)