Description

WebClient configuration

Configuration options

KeyTypeDefault ValueDescription
default-headersMap<String, String> Default headers to be used in every request from configuration
follow-redirectsBooleantrueWhether to follow redirects
read-timeoutDuration Read timeout
content-encodingContentEncodingContext Configure the listener specific io.helidon.http.encoding.ContentEncodingContext
media-contextMediaContextcreate()Configure the listener specific io.helidon.http.media.MediaContext
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)
share-connection-cacheBooleantrueWhether to share connection cache between all the WebClient instances in JVM
socket-optionsSocketOptions Socket options for connections opened by this client
redirect-sensitive-headersList<HttpCustomMethods> Request header names to strip on cross-origin redirects
read-continue-timeoutDurationPT1SSocket 100-Continue read timeout
base-uriHttpCustomMethods Base uri used by the client in all requests
connection-cache-sizeInteger256Maximal size of the connection cache for a single connection key
base-addressHttpCustomMethods Base address used by the client in all requests
cookie-managerWebClientCookieManager WebClient cookie manager
servicesList<WebClientService> WebClient services
protocol-preferenceList<String> List of HTTP protocol IDs by order of preference
filter-redirect-headersBooleantrueWhether headers sensitive to cross-origin redirects should be filtered before the redirected request is sent
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-timeoutDuration Connect timeout
proxyProxy Proxy configuration to be used for 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
services-discover-servicesBooleantrueWhether to enable automatic service discovery for services
max-redirectsInteger10Max number of followed redirects
protocol-configsList<ProtocolConfig> Configuration of client protocols
protocol-configs-discover-servicesBooleantrueWhether to enable automatic service discovery for protocol-configs
tlsTls TLS 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

Usages