Home

port_http_server / com.hexagonkt.http.server / ServerPort

ServerPort

interface ServerPort

Represents a server instance of one kind.

Functions

Name Summary
runtimePort Gets the runtime port if started, throw an exception otherwise.abstract fun runtimePort():Int
shutdown Stops the instance of the engine.abstract fun shutdown():Unit
started .abstract fun started():Boolean
startup Builds a server of a certain engine from a server definition and runs it.abstract fun startup(server:Server):Unit