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
| Key | Type | Default | Description |
|---|---|---|---|
default- | Map< | Default headers to be used in every request from configuration | |
follow- | Boolean | true | Whether to follow redirects |
base- | Client | Base uri used by the client in all requests | |
read- | Duration | Read timeout | |
connection- | Integer | 256 | Maximal size of the connection cache for a single connection key |
content- | Content | Configure the listener specific io. | |
media- | Media | create( | Configure the listener specific io. |
cookie- | Web | WebClient cookie manager | |
services | List< | WebClient services | |
relative- | 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- | Boolean | true | Whether Expect-100-Continue header is sent to verify server availability before sending an entity |
connect- | Duration | Connect timeout | |
proxy | Proxy | Proxy configuration to be used for requests | |
media- | Parser | STRICT | Configure media type parsing mode for HTTP Content- header |
keep- | 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- | Integer | 131072 | If the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance |
share- | Boolean | true | Whether to share connection cache between all the WebClient instances in JVM |
services- | Boolean | true | Whether to enable automatic service discovery for services |
max- | Integer | 10 | Max number of followed redirects |
socket- | Socket | Socket options for connections opened by this client | |
tls | Tls | TLS configuration for any TLS request from this client | |
write- | Integer | 4096 | Buffer size used when writing data to the underlying socket on a client TCP connection |
properties | Map< | Properties configured for this client | |
read- | Duration | PT1S | Socket 100-Continue read timeout |
See the manifest for all available types.