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-headers | Map<String, String> | Default headers to be used in every request from configuration | |
follow-redirects | Boolean | true | Whether to follow redirects |
base-uri | HttpCustomMethods | Base uri used by the client in all requests | |
read-timeout | Duration | Read timeout | |
connection-cache-size | Integer | 256 | Maximal size of the connection cache for a single connection key |
content-encoding | ContentEncodingContext | Configure the listener specific io.helidon.http.encoding.ContentEncodingContext | |
media-context | MediaContext | create() | Configure the listener specific io.helidon.http.media.MediaContext |
cookie-manager | WebClientCookieManager | WebClient cookie manager | |
services | List<WebClientService> | WebClient services | |
relative-uris | 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 | Boolean | true | Whether Expect-100-Continue header is sent to verify server availability before sending an entity |
connect-timeout | Duration | Connect timeout | |
proxy | Proxy | Proxy configuration to be used for requests | |
media-type-parser-mode | ParserMode | STRICT | Configure media type parsing mode for HTTP Content-Type header |
keep-alive | 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 | 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-connection-cache | Boolean | true | Whether to share connection cache between all the WebClient instances in JVM |
services-discover-services | Boolean | true | Whether to enable automatic service discovery for services |
max-redirects | Integer | 10 | Max number of followed redirects |
socket-options | SocketOptions | Socket options for connections opened by this client | |
tls | Tls | TLS configuration for any TLS request from this client | |
write-buffer-size | Integer | 4096 | Buffer size used when writing data to the underlying socket on a client TCP connection |
properties | Map<String, String> | Properties configured for this client | |
read-continue-timeout | Duration | PT1S | Socket 100-Continue read timeout |
See the manifest for all available types.