ClientConfig

expect class ClientConfig
actual class ClientConfig
actual class ClientConfig
actual class ClientConfig
actual class ClientConfig

Constructors

Link copied to clipboard
constructor(followRedirects: Boolean = true, likeAgent: UserAgent? = null, agent: String = "Kaptos/Js", requestTimeout: Long = 10000, retryOnServerErrors: Int = -1, maxRetries: Int = -1, cache: Boolean = false, proxy: String? = null)
constructor(pipelining: Boolean = false, pipelineMaxSize: Int = 20, followRedirects: Boolean = true, maxConnectionsPerRoute: Int = 100, maxConnectionsCount: Int = 1000, connectTimeoutMillis: Long = 10000, keepAliveTime: Long = 5000, connectAttempts: Int = 5, retryOnServerErrors: Int = -1, maxRetries: Int = -1, cache: Boolean = false, agent: String = "Kaptos/JVM", likeAgent: UserAgent? = null, requestTimeout: Long = 10000, connectTimeout: Long = 10000, proxy: String? = null)
constructor(followRedirects: Boolean = true, cache: Boolean = true, agent: String = "Kaptos/Linux", likeAgent: <Error class: unknown class>? = null, retryOnServerErrors: Int = -1, maxRetries: Int = -1, requestTimeout: Long = 10000, connectTimeout: Long = 10000, proxy: String? = null)
constructor(followRedirects: Boolean = true, agent: String = "Kaptos/Win", likeAgent: UserAgent? = null, requestTimeout: Long = 10000, connectTimeout: Long = 10000, retryOnServerErrors: Int = -1, maxRetries: Int = -1, cache: Boolean = false, proxy: String? = null)

Types

Link copied to clipboard
expect object Companion
actual object Companion
actual object Companion
actual object Companion
actual object Companion

Properties

agent
Link copied to clipboard

Specifies the user agent. Default is Kaptos.

Specifies the user agent. Default is Kaptos.

Specifies the user agent. Default is Kaptos.

cache
Link copied to clipboard

Enables or disables caching. Default is false.

Enables or disables caching. Default is false.

Specifies whether the client should follow SSL redirects. Default is true.

Enables or disables caching. Default is false.

Link copied to clipboard

Specifies the number of connect attempts. Default is 5.

connectTimeout
Link copied to clipboard

Specifies a timeout for establishing a connection with a node.

Specifies a timeout for establishing a connection with a node.

Specifies a timeout for establishing a connection with a node.

Link copied to clipboard

Specifies the connect timeout in milliseconds. Default is 10000L.

followRedirects
Link copied to clipboard

Specifies whether the client should follow redirects. Default is true.

Specifies whether the client should follow redirects. Default is true.

Specifies whether the client should follow redirects. Default is true.

Link copied to clipboard

Specifies the keep alive time in milliseconds. Default is 5000L.

likeAgent
Link copied to clipboard

Use a like agent. If this is set, the agent field will be ignored.

var likeAgent: <Error class: unknown class>?

Use a like agent. If this is set, the agent field will be ignored.

var likeAgent: UserAgent?

Use a like agent. If this is set, the agent field will be ignored.

Link copied to clipboard

Specifies the maximum number of connections used to make requests. Default is 1000.

Link copied to clipboard

Specifies the maximum number of connections per route. Default is 100.

maxRetries
Link copied to clipboard

Specifies how many times the client should retry on connection errors. Default is -1, which means no retries.

Specifies how many times the client should retry on connection errors. Default is -1, which means no retries.

Specifies how many times the client should retry on connection errors. Default is -1, which means no retries.

Specifies how many times the client should retry on connection errors. Default is -1, which means no retries.

Link copied to clipboard

Specifies the maximum size of the pipeline. Default is 20.

Link copied to clipboard

Specifies whether the client should use pipelining. Default is false.

proxy
Link copied to clipboard

Specifies the proxy to use. Default is null.

Specifies a proxy for the client to use.

Specifies the maximum number of connections the client can have.

Specifies the proxy to use. Default is null.

requestTimeout
Link copied to clipboard

Specifies a timeout for a whole HTTP call, from sending a request to receiving a response.

Specifies a timeout for a whole HTTP call, from sending a request to receiving a response.

Specifies a timeout for a whole HTTP call, from sending a request to receiving a response.

retryOnServerErrors
Link copied to clipboard

Specifies how many times the client should retry on server errors. Default is -1, which means no retries.

Specifies how many times the client should retry on server errors. Default is -1, which means no retries.

Specifies how many times the client should retry on server errors. Default is -1, which means no retries.

Specifies how many times the client should retry on server errors. Default is -1, which means no retries.