ShutDownUrl

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

A plugin that allows you to configure a URL used to shut down the server. There are two ways to enable this plugin:

  • In a HOCON configuration file.

  • By installing the plugin. You can learn more from Shutdown URL.

Constructors

Link copied to clipboard
fun ShutDownUrl(url: String, exitCode: ApplicationCall.() -> Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Config

A configuration for the ShutDownUrl plugin.

Link copied to clipboard

A plugin to install into an engine pipeline.

Functions

Link copied to clipboard
suspend fun doShutdown(call: ApplicationCall)

Shuts down an application using the specified call.

Properties

Link copied to clipboard
val exitCode: ApplicationCall.() -> Int

is a function to compute a process exit code

Link copied to clipboard
val url: String

to handle