ktor-client-core / io.ktor.client.utils

Package io.ktor.client.utils

Types

ByteBufferPool

class ByteBufferPool : DefaultPool<ByteBuffer>

CacheControl

object CacheControl

List of CacheControl known values.

EmptyContent

object EmptyContent : NoContent

Concrete OutgoingContent without a payload.

Extensions for External Classes

io.ktor.http.content.OutgoingContent

kotlin.Throwable

kotlinx.coroutines.Dispatchers

Properties

DEFAULT_HTTP_BUFFER_SIZE

const val DEFAULT_HTTP_BUFFER_SIZE: Int

Size of each buffer in the HttpClientDefaultPool.

DEFAULT_HTTP_POOL_SIZE

const val DEFAULT_HTTP_POOL_SIZE: Int

Maximum number of buffers to be allocated in the HttpClientDefaultPool.

HttpClientDefaultPool

val HttpClientDefaultPool: ByteBufferPool

Singleton pool of ByteBuffer objects used for HttpClient.

Functions

buildHeaders

fun buildHeaders(block: HeadersBuilder.() -> Unit = {}): Headers

Builds an instance of Headers using the block function.