Description

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

Usages

Configuration options

KeyKindTypeDefault ValueDescription
base-uriVALUEi.h.w.a.H.HttpCustomMethods Base uri used by the client in all requests
connect-timeoutVALUEDuration Connect timeout
connection-cache-sizeVALUEInteger256Maximal size of the connection cache for a single connection key
content-encodingVALUEi.h.h.e.ContentEncodingContext Configure the listener specific io.helidon.http.encoding.ContentEncodingContext
cookie-managerVALUEi.h.w.a.WebClientCookieManager WebClient cookie manager
default-headersMAPString Default headers to be used in every request from configuration
filter-redirect-headersVALUEBooleantrueWhether headers sensitive to cross-origin redirects should be filtered before the redirected request is sent
follow-redirectsVALUEBooleantrueWhether to follow redirects
keep-aliveVALUEBooleantrueDetermines 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-entityVALUEInteger131072If the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance
max-redirectsVALUEInteger10Max number of followed redirects
media-contextVALUEi.h.h.m.MediaContextcreate()Configure the listener specific io.helidon.http.media.MediaContext
media-type-parser-modeVALUEi.h.c.m.t.ParserModeSTRICTConfigure media type parsing mode for HTTP Content-Type header
propertiesMAPString Properties configured for this client
proxyVALUEi.h.w.a.Proxy Proxy configuration to be used for requests
read-continue-timeoutVALUEDurationPT1SSocket 100-Continue read timeout
read-timeoutVALUEDuration Read timeout
redirect-sensitive-headersLISTi.h.w.a.H.HttpCustomMethods Request header names to strip on cross-origin redirects
relative-urisVALUEBooleanfalseCan 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-continueVALUEBooleantrueWhether Expect-100-Continue header is sent to verify server availability before sending an entity
servicesLISTi.h.w.s.WebClientService WebClient services
services-discover-servicesVALUEBooleantrueWhether to enable automatic service discovery for services
share-connection-cacheVALUEBooleantrueWhether to share connection cache between all the WebClient instances in JVM
socket-optionsVALUEi.h.c.s.SocketOptions Socket options for connections opened by this client
tlsVALUEi.h.c.t.Tls TLS configuration for any TLS request from this client
write-buffer-sizeVALUEInteger4096Buffer size used when writing data to the underlying socket on a client TCP connection

See the manifest for all available types.