Add an URL for shutting down the server
There are two ways to use it: Automatically using HOCON and
dependencies { implementation "io.ktor:ktor-server-host-common:$ktor_version"}
Installing the feature
You can manually install the feature, with ShutDownUrl.ApplicationCallFeature
and set the shutDownUrl
and an exitCodeSupplier
:
// The URL that will be intercepted
// A function that will be executed to get the exit code of the process
}