ClientSpec

interface ClientSpec

A spec for configuring a Client.

Functions

Link copied to clipboard
abstract fun adapterCodec(adapterCodec: AdapterCodec)
abstract fun adapterCodec(block: AdapterCodecSpec.() -> Unit)
Link copied to clipboard
abstract fun authenticator(authenticator: Authenticator)
Link copied to clipboard
abstract fun autoAcceptEncoding(autoAcceptEncoding: Boolean)
Link copied to clipboard
abstract fun backendInterceptors(block: InterceptorsSpec.() -> Unit)
Link copied to clipboard
abstract fun baseUri(uri: URI)
abstract fun baseUri(uri: String)
Link copied to clipboard
abstract fun cache(cache: Cache)
abstract fun cache(block: CacheSpec.() -> Unit)
Link copied to clipboard
abstract fun cacheChain(block: CacheChainSpec.() -> Unit)
abstract fun cacheChain(cacheChain: CacheChain)
Link copied to clipboard
abstract fun connectTimeout(timeout: Duration)
Link copied to clipboard
abstract fun cookieHandler(cookieHandler: CookieHandler)
Link copied to clipboard
abstract fun defaultHeaders(block: HeadersSpec.() -> Unit)
Link copied to clipboard
abstract fun executor(executor: Executor)
Link copied to clipboard
abstract fun followRedirects(redirect: <Error class: unknown class>)
Link copied to clipboard
abstract fun headersTimeout(timeout: Duration)
Link copied to clipboard
abstract fun interceptors(block: InterceptorsSpec.() -> Unit)
Link copied to clipboard
abstract fun priority(priority: Int)
Link copied to clipboard
abstract fun proxy(proxySelector: ProxySelector)
Link copied to clipboard
abstract fun readTimeout(timeout: Duration)
Link copied to clipboard
abstract fun requestTimeout(timeout: Duration)
Link copied to clipboard
abstract fun sslContext(sslContext: SSLContext)
Link copied to clipboard
abstract fun sslParameters(sslParameters: SSLParameters)
Link copied to clipboard
abstract fun userAgent(userAgent: String)
Link copied to clipboard
abstract fun version(version: <Error class: unknown class>)