Configuration options

Table 1. Optional configuration options
key type default value description

connect-timeout

Duration

 

Connect timeout.

See io.helidon.common.socket.SocketOptions.connectTimeout()

follow-redirects

boolean

true

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).

See io.helidon.common.socket.SocketOptions.socketKeepAlive()

max-redirects

int

10

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

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).

proxy

 

Proxy configuration to be used for requests.

read-timeout

Duration

 

Read timeout.

See io.helidon.common.socket.SocketOptions.readTimeout()

tls

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.