ShutDownUrl

class ShutDownUrl

Shutdown URL feature. It stops application when requested particular url

Types

ApplicationCallFeature

object ApplicationCallFeature : 
    ApplicationFeature<ApplicationCallPipeline, Configuration, ShutDownUrl>

A feature to install into application call pipeline

Configuration

class Configuration

Shutdown url configuration builder

EngineFeature

object EngineFeature : 
    ApplicationFeature<EnginePipeline, Configuration, ShutDownUrl>

A feature to install into engine pipeline

Constructors

<init>

ShutDownUrl(url: String, exitCode: ApplicationCall.() -> Int)

Shutdown URL feature. It stops application when requested particular url

Properties

exitCode

val exitCode: ApplicationCall.() -> Int

is a function to compute process exit code

url

val url: String

to handle

Functions

doShutdown

suspend fun doShutdown(call: ApplicationCall): Unit

Does application shutdown using the specified call