Application
class Application(val environment: ApplicationEnvironment) : ApplicationCallPipeline, CoroutineScope
Represents configured and running web application, capable of handling requests. It is also the application coroutine scope that is cancelled immediately at application stop so useful for launching background coroutines.
Parameters
environment
Instance of ApplicationEnvironment describing environment this application runs in
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called by ApplicationEngine when Application is terminated
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun intercept(phase: PipelinePhase, block: suspend PipelineContext<Unit, ApplicationCall>.(Unit) -> Unit)
Link copied to clipboard
fun interceptorsForPhase(phase: PipelinePhase): List<suspend PipelineContext<Unit, ApplicationCall>.(Unit) -> Unit>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Extensions
Link copied to clipboard
Convenience property to access log from application
Link copied to clipboard
Returns first instance of a plugin that implements MDCProvider or default implementation with an empty context
Link copied to clipboard
Installs a Routing plugin for the this Application and runs a configuration script on it. You can learn more about routing in Ktor from Routing.