HttpClientOptions

data class HttpClientOptions(val followRedirects: Boolean = true, val requestTimeout: <Error class: unknown class> = 30.seconds, val connectTimeout: <Error class: unknown class> = 6.seconds, val socketTimeout: <Error class: unknown class> = 30.seconds, val socketReconnectPolicy: SocketReconnectPolicy = SocketReconnectPolicy.ExponentialDelayReconnect())

Options to use when making HTTP requests.

Constructors

Link copied to clipboard
constructor(followRedirects: Boolean = true, requestTimeout: <Error class: unknown class> = 30.seconds, connectTimeout: <Error class: unknown class> = 6.seconds, socketTimeout: <Error class: unknown class> = 30.seconds, socketReconnectPolicy: SocketReconnectPolicy = SocketReconnectPolicy.ExponentialDelayReconnect())

Properties

Link copied to clipboard
val connectTimeout: <Error class: unknown class>

Timeout for connecting to the server. Defaults to 6 seconds.

Link copied to clipboard

Follows HTTP redirect responses if set to true. Defaults to true.

Link copied to clipboard
val requestTimeout: <Error class: unknown class>

Timeout for a complete HTTP request. Defaults to 30 seconds.

Link copied to clipboard

Policy to use for WebSocket reconnections. Defaults to SocketReconnectPolicy.ExponentialDelayReconnect.

Link copied to clipboard
val socketTimeout: <Error class: unknown class>

Timeout between receiving or writing messages. Defaults to 30 seconds.