KeelServerConfig

Configuration for the Keel Server Engine.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Size of the event group for running application code. Specific behavior depends on the chosen engine.

Link copied to clipboard

Size of the event group for accepting connections. Specific behavior depends on the chosen engine.

Link copied to clipboard

The engine to use for the Keel Server. Defaults to Netty.

Link copied to clipboard

Allows engine-specific configuration block. This is an escape hatch to configure engine-specific settings. The parameter is the engine configuration class (e.g. NettyApplicationEngine.Configuration).

Link copied to clipboard

The host to bind the server to. Defaults to "0.0.0.0".

Link copied to clipboard
var port: Int

The port to bind the server to. Defaults to 8080.

Link copied to clipboard

Size of the event group for processing connections, parsing messages and doing engine's internal work. Specific behavior depends on the chosen engine.

Functions

Link copied to clipboard
fun <T : Any> configureEngine(block: T.() -> Unit)

Set a custom engine-specific configuration block.

Link copied to clipboard

Register global Ktor plugins for the application scope.

Link copied to clipboard
fun installConfiguredGlobalKtorPlugins(application: Application)