Skip to content

io.helidon.webclient.api.HttpClientConfig

Description

This can be used by any HTTP client version, and does not act as a factory, for easy extensibility

Configuration options

KeyTypeDefaultDescription
default-headersMap<String, String>Default headers to be used in every request from configuration
follow-redirectsBooleantrueWhether to follow redirects
base-uriHttpCustomMethodsBase uri used by the client in all requests
read-timeoutDurationRead timeout
connection-cache-sizeInteger256Maximal size of the connection cache for a single connection key
content-encodingContentEncodingContextConfigure the listener specific io.helidon.http.encoding.ContentEncodingContext
media-contextMediaContextcreate()Configure the listener specific io.helidon.http.media.MediaContext
cookie-managerWebClientCookieManagerWebClient cookie manager
servicesList<WebClientService>WebClient services
relative-urisBooleanfalseCan be set to true to force the use of relative URIs in all requests, regardless of the presence or absence of proxies or no-proxy lists
send-expect-continueBooleantrueWhether Expect-100-Continue header is sent to verify server availability before sending an entity
connect-timeoutDurationConnect timeout
proxyProxyProxy configuration to be used for requests
media-type-parser-modeParserModeSTRICTConfigure media type parsing mode for HTTP Content-Type header
keep-aliveBooleantrueDetermines if connection keep alive is enabled (NOT socket keep alive, but HTTP connection keep alive, to re-use the same connection for multiple requests)
max-in-memory-entityInteger131072If the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance
share-connection-cacheBooleantrueWhether to share connection cache between all the WebClient instances in JVM
services-discover-servicesBooleantrueWhether to enable automatic service discovery for services
max-redirectsInteger10Max number of followed redirects
socket-optionsSocketOptionsSocket options for connections opened by this client
tlsTlsTLS configuration for any TLS request from this client
write-buffer-sizeInteger4096Buffer size used when writing data to the underlying socket on a client TCP connection
propertiesMap<String, String>Properties configured for this client
read-continue-timeoutDurationPT1SSocket 100-Continue read timeout

See the manifest for all available types.