Package io.ktor.server.netty
Types
Link copied to clipboard
Link copied to clipboard
Netty engine
Link copied to clipboard
class EventLoopGroupProxy(channel: KClass<out ServerSocketChannel>, group: EventLoopGroup) : EventLoopGroup
Content copied to clipboard
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
object Netty : ApplicationEngineFactory<NettyApplicationEngine, NettyApplicationEngine.Configuration>
Content copied to clipboard
An ApplicationEngineFactory providing a Netty-based ApplicationEngine
Link copied to clipboard
abstract class NettyApplicationCall(application: Application, context: ChannelHandlerContext, requestMessage: Any) : BaseApplicationCall
Content copied to clipboard
Link copied to clipboard
class NettyApplicationEngine(environment: ApplicationEngineEnvironment, configure: NettyApplicationEngine.Configuration.() -> Unit) : BaseApplicationEngine
Content 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
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class NettyApplicationResponse(call: NettyApplicationCall, context: ChannelHandlerContext, engineContext: CoroutineContext, userContext: CoroutineContext) : BaseApplicationResponse
Content copied to clipboard
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) : ChannelInitializer<SocketChannel>
Content copied to clipboard
A ChannelInitializer implementation that does setup the default ktor channel pipeline
Functions
Link copied to clipboard
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
Content copied to clipboard
Suspend until the future completion handling exception from the future using exception function
Link copied to clipboard
Suspend until the future completion. Wraps futures completion exceptions into ChannelWriteException