Package-level declarations

Types

Link copied to clipboard
typealias ConnectorBuilder = (Server) -> ServerConnector
Link copied to clipboard
class Http4kJettyHttpHandler(handler: HttpHandler) : Handler.Abstract
Link copied to clipboard
class Http4kJettyServerWebSocketEndpoint(consumer: WsConsumer, request: Request) : Session.Listener.AbstractAutoDemanding
Link copied to clipboard
class Jetty(port: Int, val stopMode: ServerConfig.StopMode, server: Server) : PolyServerConfig

Stock version of an Jetty Server. Not that if you want to configure your own server instance you can duplicate this code and modify it as required. We are purposefully trying to limit options here to keep the API simple for the 99% of use-cases.

Link copied to clipboard
class JettyEventStreamHandler(sse: SseHandler, heartBeatDuration: Duration = Duration.ofSeconds(15)) : Handler.Abstract.NonBlocking

Functions

Link copied to clipboard
fun http(httpPort: Int): ConnectorBuilder
Link copied to clipboard
fun http2(http2Port: Int, keystorePath: String, keystorePassword: String): ConnectorBuilder
Link copied to clipboard
fun JettyLoom(port: Int): Jetty
fun JettyLoom(port: Int, stopMode: ServerConfig.StopMode): Jetty
Link copied to clipboard
fun HttpHandler.toJettyHandler(withStatisticsHandler: Boolean = false): Handler.Wrapper
Link copied to clipboard
fun SseHandler.toJettySseHandler(): Handler.Wrapper
Link copied to clipboard
fun WsHandler.toJettyWsHandler(server: Server): Handler.Wrapper