Package io.ktor.util.cio

Types

ByteBufferPool

class ByteBufferPool : DefaultPool<ByteBuffer>

NoopContinuation

object NoopContinuation

Semaphore

class Semaphore

Asynchronous Semaphore.

Exceptions

ChannelIOException

open class ChannelIOException : IOException

An exception thrown when an IO error occurred during reading or writing to/from the underlying channel. The typical error is “connection reset” and so on.

ChannelReadException

class ChannelReadException : ChannelIOException

An exception that is thrown when an IO error occurred during reading from the request channel. Usually it happens when a remote client closed the connection.

ChannelWriteException

class ChannelWriteException : ChannelIOException

An exception that is thrown when an IO error occurred during writing to the destination channel. Usually it happens when a remote client closed the connection.

Extensions for External Classes

java.io.File

java.io.InputStream

java.nio.file.Path

kotlinx.coroutines.io.ByteReadChannel

kotlinx.coroutines.io.ByteWriteChannel

Properties

KtorDefaultPool

val KtorDefaultPool: ObjectPool<ByteBuffer>

The default ktor byte buffer pool