Package io.ktor.util.cio
Types
class ByteBufferPool : DefaultPool<ByteBuffer> |
|
object |
|
class Asynchronous Semaphore. |
Exceptions
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. |
|
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. |
|
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
Properties
val KtorDefaultPool: ObjectPool<ByteBuffer> The default ktor byte buffer pool |
Functions
fun ByteWriteChannel.bufferedWriter( Open a buffered writer to the channel |
|
suspend fun ByteReadChannel.pass( Read data chunks from ByteReadChannel using buffer |
|
suspend fun ByteReadChannel.toByteArray( Convert ByteReadChannel to ByteArray |
|
fun ByteWriteChannel.use( Executes block on ByteWriteChannel and close it down correctly whether an exception |
|
suspend fun ByteWriteChannel.write( |
|
fun ByteWriteChannel.writer( Open a writer to the channel |