Description
This can be used by any HTTP client version, and does not act as a factory, for easy extensibility.
Usages
Configuration options
| Key | Kind | Type | Default Value | Description |
|---|---|---|---|---|
base-uri | VALUE | i.h.w.a.H.HttpCustomMethods | Base uri used by the client in all requests | |
connect-timeout | VALUE | Duration | Connect timeout | |
connection-cache-size | VALUE | Integer | 256 | Maximal size of the connection cache for a single connection key |
content-encoding | VALUE | i.h.h.e.ContentEncodingContext | Configure the listener specific io.helidon.http.encoding.ContentEncodingContext | |
cookie-manager | VALUE | i.h.w.a.WebClientCookieManager | WebClient cookie manager | |
default-headers | MAP | String | Default headers to be used in every request from configuration | |
filter-redirect-headers | VALUE | Boolean | true | Whether headers sensitive to cross-origin redirects should be filtered before the redirected request is sent |
follow-redirects | VALUE | Boolean | true | Whether to follow redirects |
keep-alive | VALUE | Boolean | true | Determines 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-entity | VALUE | Integer | 131072 | If the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance |
max-redirects | VALUE | Integer | 10 | Max number of followed redirects |
media-context | VALUE | i.h.h.m.MediaContext | create() | Configure the listener specific io.helidon.http.media.MediaContext |
media-type-parser-mode | VALUE | i.h.c.m.t.ParserMode | STRICT | Configure media type parsing mode for HTTP Content-Type header |
properties | MAP | String | Properties configured for this client | |
proxy | VALUE | i.h.w.a.Proxy | Proxy configuration to be used for requests | |
read-continue-timeout | VALUE | Duration | PT1S | Socket 100-Continue read timeout |
read-timeout | VALUE | Duration | Read timeout | |
redirect-sensitive-headers | LIST | i.h.w.a.H.HttpCustomMethods | Request header names to strip on cross-origin redirects | |
relative-uris | VALUE | Boolean | false | Can 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-continue | VALUE | Boolean | true | Whether Expect-100-Continue header is sent to verify server availability before sending an entity |
services | LIST | i.h.w.s.WebClientService | WebClient services | |
services-discover-services | VALUE | Boolean | true | Whether to enable automatic service discovery for services |
share-connection-cache | VALUE | Boolean | true | Whether to share connection cache between all the WebClient instances in JVM |
socket-options | VALUE | i.h.c.s.SocketOptions | Socket options for connections opened by this client | |
tls | VALUE | i.h.c.t.Tls | TLS configuration for any TLS request from this client | |
write-buffer-size | VALUE | Integer | 4096 | Buffer size used when writing data to the underlying socket on a client TCP connection |
See the manifest for all available types.