Mokksy Server
constructor(host: String = DEFAULT_HOST, port: Int = 0, configuration: ServerConfiguration, configurer: ApplicationConfigurer = {})(source)
Creates a MokksyServer instance. Call start() (on JVM) or startSuspend to begin processing requests.
Parameters
host
The host to bind to. Defaults to 127.0.0.1.
port
The port to bind to. Defaults to 0 (randomly assigned).
configuration
ServerConfiguration options.
configurer
Additional Ktor Application configuration applied after the default routing setup.
constructor(host: String = DEFAULT_HOST, port: Int = 0, verbose: Boolean = false, configurer: ApplicationConfigurer = {})(source)
Creates a MokksyServer instance using a verbose flag instead of a full ServerConfiguration. Call start() (on JVM) or startSuspend to begin processing requests.
Parameters
host
The host to bind to. Defaults to 127.0.0.1.
port
The port to bind to. Defaults to 0 (randomly assigned).
verbose
Enables DEBUG-level request logging when true. Defaults to false.
configurer
Additional Ktor Application configuration applied after the default routing setup.