Package io.ktor.server.netty

Types

Link copied to clipboard
object EngineMain

Netty engine

Link copied to clipboard
class EventLoopGroupProxy(channel: KClass<out ServerSocketChannel>, group: EventLoopGroup) : EventLoopGroup

Transparently allows for the creation of EventLoopGroup's utilising the optimal implementation for a given operating system, subject to availability, or falling back to NioEventLoopGroup if none is available.

Link copied to clipboard
Link copied to clipboard
abstract class NettyApplicationCall(application: Application, context: ChannelHandlerContext, requestMessage: Any) : BaseApplicationCall
Link copied to clipboard

ApplicationEngine implementation for running in a standalone Netty

Link copied to clipboard
abstract class NettyApplicationRequest(call: ApplicationCall, coroutineContext: CoroutineContext, context: ChannelHandlerContext, requestBodyChannel: ByteReadChannel, uri: String, keepAlive: Boolean) : BaseApplicationRequest, CoroutineScope
Link copied to clipboard
class NettyApplicationRequestHeaders(request: HttpRequest) : Headers
Link copied to clipboard
abstract class NettyApplicationResponse(call: NettyApplicationCall, context: ChannelHandlerContext, engineContext: CoroutineContext, userContext: CoroutineContext) : BaseApplicationResponse
Link copied to clipboard
class NettyChannelInitializer(enginePipeline: EnginePipeline, environment: ApplicationEngineEnvironment, callEventGroup: EventExecutorGroup, engineContext: CoroutineContext, userContext: CoroutineContext, connector: EngineConnectorConfig, requestQueueLimit: Int, runningLimit: Int, responseWriteTimeout: Int, requestReadTimeout: Int, httpServerCodec: () -> HttpServerCodec, channelPipelineConfig: ChannelPipeline.() -> Unit) : ChannelInitializer<SocketChannel>

A ChannelInitializer implementation that does setup the default ktor channel pipeline

Functions

Link copied to clipboard
suspend fun <T> Future<T>.suspendAwait(): T

Suspend until the future completion. Resumes with the same exception if the future completes exceptionally

suspend fun <T> Future<T>.suspendAwait(exception: (Throwable, Continuation<T>) -> Unit): T

Suspend until the future completion handling exception from the future using exception function

Link copied to clipboard
suspend fun <T> Future<T>.suspendWriteAwait(): T

Suspend until the future completion. Wraps futures completion exceptions into ChannelWriteException