//core/com.petersamokhin.vksdk.core.http/HttpClientConfig
HttpClientConfig¶
[common]\ data class HttpClientConfig(connectTimeout: Int, readTimeout: Int, defaultHeaders: Map<String, String>)
Abstract HTTP Client config
Constructors¶
HttpClientConfig | [common] fun HttpClientConfig(connectTimeout: Int = 30_000, readTimeout: Int = 30_000, defaultHeaders: Map<String, String> = mapOf()) |
Properties¶
Name | Summary |
---|---|
connectTimeout | [common] val connectTimeout: Int = 30_000 Connect timeout in milliseconds |
defaultHeaders | [common] val defaultHeaders: Map<String, String> Default HTTP headers, such as User-Agent |
readTimeout | [common] val readTimeout: Int = 30_000 Read timeout in milliseconds |