HttpServer
data class HttpServer(adapter: HttpServerPort, val handler: HttpHandler, val settings: HttpServerSettings = HttpServerSettings()) : Closeable
Server that listen to HTTP connections on a port and address and route requests to handlers.
Constructors
Link copied to clipboard
constructor(adapter: HttpServerPort, settings: HttpServerSettings = HttpServerSettings(), block: HandlerBuilder.() -> Unit)
Create a server with a builder (HandlerBuilder) to set up handlers.
constructor(adapter: HttpServerPort, handler: HttpHandler, settings: HttpServerSettings = HttpServerSettings())