abstract class BaseApplicationEngine(environment: ApplicationEngineEnvironment, pipeline: EnginePipeline) : ApplicationEngine

Base class for implementing ApplicationEngine

It creates default engine pipeline, provides application property and installs default transformations on respond and receive



instance of ApplicationEngineEnvironment for this engine


pipeline to use with this engine


Link copied to clipboard
fun BaseApplicationEngine(environment: ApplicationEngineEnvironment, pipeline: EnginePipeline = defaultEnginePipeline(environment))


Link copied to clipboard
open class Configuration : ApplicationEngine.Configuration

Configuration for the BaseApplicationEngine


Link copied to clipboard
open suspend override fun resolvedConnectors(): List<EngineConnectorConfig>

Local addresses for application connectors. If environment's connectors was configured to use port=0, you can use this function to get an actual port for these connectors. Available after a server is started.

Link copied to clipboard
abstract fun start(wait: Boolean = false): ApplicationEngine

Starts this ApplicationEngine.

Link copied to clipboard
abstract fun stop(gracePeriodMillis: Long = 500, timeoutMillis: Long = 500)

Stops this ApplicationEngine.


Link copied to clipboard
open val application: <ERROR CLASS>

A currently running application instance.

Link copied to clipboard
override val environment: ApplicationEngineEnvironment
Link copied to clipboard
val pipeline: EnginePipeline