api

http4k / org.http4k.server

Package org.http4k.server

Common code relevant to HTTP server implementations.

Types

Name Summary
ApacheServer data class ApacheServer : ServerConfig
Http4kChannelHandler class Http4kChannelHandler : SimpleChannelInboundHandler<FullHttpRequest>
Exposed to allow for insertion into a customised Netty server instance
Http4kRequestHandler class Http4kRequestHandler : HttpRequestHandler
Exposed to allow for insertion into a customised Apache WebServer instance
Http4kServer interface Http4kServer : AutoCloseable
HttpUndertowHandler class HttpUndertowHandler : HttpHandler
Exposed to allow for insertion into a customised Undertow server instance
Jetty class Jetty : WsServerConfig
KtorCIO data class KtorCIO : ServerConfig
Netty data class Netty : ServerConfig
ServerConfig interface ServerConfig
Standard interface for creating a configured WebServer
SunHttp data class SunHttp : ServerConfig
Undertow data class Undertow : ServerConfig
WsServerConfig interface WsServerConfig : ServerConfig
Standard interface for creating a configured WebServer which supports Websockets

Type Aliases

Name Summary
ConnectorBuilder typealias ConnectorBuilder = (Server) -> ServerConnector

Extensions for External Classes

Name Summary
io.ktor.request.ApplicationRequest  
io.ktor.response.ApplicationResponse  
kotlin.Function1  

Functions

Name Summary
asServer fun PolyHandler.asServer(config: WsServerConfig): Http4kServer
http fun http(httpPort: Int): ConnectorBuilder
http2 fun http2(http2Port: Int, keystorePath: String, keystorePassword: String): ConnectorBuilder