Package-level declarations

Types

Link copied to clipboard
typealias ConnectorBuilder = (Server) -> ServerConnector
Link copied to clipboard
class Http4kWebSocketFrameHandler(consumer: WsConsumer) : FrameHandler
Link copied to clipboard
class Jetty11(port: Int, val stopMode: ServerConfig.StopMode, server: Server) : PolyServerConfig

Stock version of an Jetty11 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 Jetty11EventStreamEmitter(connectRequest: Request, output: OutputStream, heartBeatDuration: Duration, scheduler: Scheduler, onClose: (Jetty11EventStreamEmitter) -> Unit) : PushAdaptingSse, Runnable, LifeCycle.Listener
Link copied to clipboard
class Jetty11EventStreamHandler(sse: SseHandler, heartBeatDuration: Duration = Duration.ofSeconds(15)) : HandlerWrapper

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
Link copied to clipboard
fun HttpHandler.toJetty11Handler(withStatisticsHandler: Boolean = false): HandlerWrapper
Link copied to clipboard
fun WsHandler.toJettyNegotiator(): WebSocketNegotiator.AbstractNegotiator
Link copied to clipboard
fun WsHandler.toJettyWsHandler(): WebSocketUpgradeHandler