HttpServerTool

data class HttpServerTool(adapter: HttpServerPort, settings: HttpServerSettings = HttpServerSettings(), var path: PathHandler = PathHandler())

Server with dynamic handler (delegated to path). Root handler can be replaced at any time without restarting the server.

Constructors

Link copied to clipboard
constructor(adapter: HttpServerPort, settings: HttpServerSettings = HttpServerSettings(), path: PathHandler = PathHandler())

Properties

Link copied to clipboard
val binding: URL
Link copied to clipboard
Link copied to clipboard
val runtimePort: Int

Functions

Link copied to clipboard
fun path(block: HandlerBuilder.() -> Unit)
Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()