Package-level declarations
Code implementing the Netty HTTP server adapter.
Types
Link copied to clipboard
class NettyRequestAdapter(methodName: HttpMethod, req: HttpRequest, val certificateChain: List<X509Certificate>, channel: Channel, nettyHeaders: HttpHeaders) : HttpRequestPort
Link copied to clipboard
open class NettyServerAdapter(bossGroupThreads: Int = 1, workerGroupThreads: Int = 0, executorThreads: Int = Jvm.cpuCount * 2, soBacklog: Int = 4 * 1_024, soReuseAddr: Boolean = true, soKeepAlive: Boolean = true, shutdownQuietSeconds: Long = 0, shutdownTimeoutSeconds: Long = 0, keepAliveHandler: Boolean = true, httpAggregatorHandler: Boolean = true, chunkedHandler: Boolean = true, enableWebsockets: Boolean = true) : HttpServerPort
Implements HttpServerPort using Netty Channel.
Functions
Link copied to clipboard
fun serve(settings: HttpServerSettings = HttpServerSettings(), block: HandlerBuilder.() -> Unit): HttpServer
Create a Netty server and start it. It is a shortcut to avoid passing the adapter.