WebServerDsl

open class WebServerDsl(var host: String, var port: Number, init: WebServerDsl.() -> Unit)

Dsl for configuring a web server.

Parameters

host

the host to bind to

port

the port to bind to

Constructors

Link copied to clipboard
constructor(host: String, port: Number, init: WebServerDsl.() -> Unit)

Functions

Link copied to clipboard
fun router(routes: RouterDsl.() -> Unit)

Configures a router.

Link copied to clipboard

Starts a Nodejs server listening on the specified host and port.

Properties

Link copied to clipboard
Link copied to clipboard