Package io.ktor.network.sockets
Types
Link copied to clipboard
expect class ConnectTimeoutException(message: String, cause: Throwable?) : IOException
Content copied to clipboard
This exception is thrown in case connect timeout exceeded.
actual class ConnectTimeoutException(message: String, cause: Throwable?) : ConnectException
Content copied to clipboard
This exception is thrown in case connect timeout exceeded.
actual class ConnectTimeoutException(message: String, cause: Throwable?) : IOException
Content copied to clipboard
This exception is thrown in case connect timeout exceeded.
Link copied to clipboard
expect class SocketTimeoutException(message: String, cause: Throwable?) : IOException
Content copied to clipboard
This exception is thrown in case socket timeout (read or write) exceeded.
actual class SocketTimeoutException(message: String, cause: Throwable?) : SocketTimeoutException
Content copied to clipboard
This exception is thrown in case socket timeout (read or write) exceeded.
actual class SocketTimeoutException(message: String, cause: Throwable?) : IOException
Content copied to clipboard
This exception is thrown in case socket timeout (read or write) exceeded.
Functions
Link copied to clipboard
fun CoroutineScope.mapEngineExceptions(input: ByteReadChannel, request: HttpRequestData): ByteReadChannel
Content copied to clipboard
Returns ByteReadChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException.
fun CoroutineScope.mapEngineExceptions(output: ByteWriteChannel, request: HttpRequestData): ByteWriteChannel
Content copied to clipboard
Returns ByteWriteChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException.