Package-level declarations

Code implementing the Jetty HTTP server adapter.

Types

Link copied to clipboard
class JettyServletAdapter(maxThreads: Int = 200, minThreads: Int = 8, acceptors: Int = -1, selectors: Int = -1, sendDateHeader: Boolean = false, sendServerVersion: Boolean = false, sendXPoweredBy: Boolean = false, useVirtualThreads: Boolean = false) : HttpServerPort

Implements HttpServerPort using JettyServer.

Functions

Link copied to clipboard
fun serve(settings: HttpServerSettings = HttpServerSettings(), block: ServerBuilder.() -> Unit): HttpServer
fun serve(settings: HttpServerSettings = HttpServerSettings(), handlers: List<HttpHandler>): HttpServer

Create a Jetty server and start it. It is a shortcut to avoid passing the adapter.