WebClientConfiguration (webclient) Configuration

Configuration of the HTTP client

Type: io.helidon.webclient.WebClientConfiguration

This is a standalone configuration type, prefix from configuration root: client

Configuration options

Optional configuration options
keytypedefault valuedescription
connect-timeout-millis

long

60000

Sets new connection timeout of the request.

cookies.automatic-store-enabled

boolean

 

Whether to allow automatic cookie storing

cookies.default-cookies

Map

 

Default cookies to be used in each request. Each list entry has to have "name" and "value" node

dns-resolver-type

DnsResolverType (DEFAULT, ROUND_ROBIN, NONE)

 

Set which type of DNS resolver should be used.

follow-redirects

boolean

false

Whether to follow any response redirections or not.

headers

Map

 

Default headers to be used in each request. Each list entry has to have "name" and "value" node

keep-alive

boolean

true

Enable keep alive option on the connection.

max-buffered-entity-size

long

1048576

Maximum decoded input bytes per materializing response conversion, including each multipart part. Zero permits only empty input; negative values are rejected. Direct streams and streaming readers are excluded. Exceeding the budget fails conversion with IllegalStateException. This is an input budget, not an object-graph size limit.

max-redirects

int

5

Sets max number of followed redirects.

media-support 
proxy 

Sets new request proxy.

read-timeout-millis

long

600000

Sets new read timeout of the response. A positive timeout also bounds the wait from the first informational response to final response headers; further informational responses do not restart this wait. A nonpositive timeout disables both limits.

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.

tls 

New TLS configuration.

uri

string

 

Base URI for each request

user-agent

string

 

Name of the user agent which should be used.