server

fun server(port: Int, block: Server.() -> Unit): Server

Creates and configures a Jetty Server on the specified port.

Return

the configured Server instance.

Parameters

port

the port number the server will listen on.

block

a lambda with Server as receiver for configuring the server.