start

fun start(server: (Int) -> ServerConfig = { JettyLoom(it) }, httpConfig: RoutingHttpHandler.() -> RoutingHttpHandler = { debug() }, serverConfig: KovenServerBuilder.() -> Unit = {}): KovenServer

Configures and starts the server.

Parameters

httpConfig

A function that configures the routes through RoutingHttpHandler, akin to a org.http4k.core.Filter.

serverConfig

A function that configures the server through KovenServerBuilder.

Throws

If the server is already running.