HttpConfigBase (webclient.api) Configuration

Type: io.helidon.webclient.api.HttpConfigBase

Configuration options

Optional configuration options
keytypedefault valuedescription
connect-timeout

Duration

 

Connect timeout.

@return connect timeout
@see io.helidon.common.socket.SocketOptions#connectTimeout()
follow-redirects

boolean

true

Whether to follow redirects.

@return whether to follow redirects
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).

@return keep alive for this connection
@see io.helidon.common.socket.SocketOptions#socketKeepAlive()
max-redirects

int

10

Max number of followed redirects. This is ignored if #followRedirects() option is false.

@return max number of followed redirects
properties

Map<string, string>

 

Properties configured for this client. These properties are propagated through client request, to be used by services (and possibly for other purposes).

@return map of client properties
proxy 

Proxy configuration to be used for requests.

@return proxy to use, defaults to Proxy#noProxy()
read-timeout

Duration

 

Read timeout.

@return read timeout
@see io.helidon.common.socket.SocketOptions#readTimeout()
tls 

TLS configuration for any TLS request from this client. TLS can also be configured per request. TLS is used when the protocol is set to https.

@return TLS configuration to use