StatusPagesConfig
A StatusPages plugin configuration.
Constructors
Types
Link copied to clipboard
A context for status config method.
Functions
Link copied to clipboard
fun status(vararg status: <ERROR CLASS>, handler: suspend (<ERROR CLASS>, <ERROR CLASS>) -> Unit)
Content copied to clipboard
fun status(vararg status: <ERROR CLASS>, handler: suspend StatusPagesConfig.StatusContext.(<ERROR CLASS>) -> Unit)
Content copied to clipboard
Properties
Link copied to clipboard
val statuses: MutableMap<<ERROR CLASS>, suspend (<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS>) -> Unit>
Content copied to clipboard
Extensions
Link copied to clipboard
fun <T : Throwable> StatusPagesConfig.exception(klass: Class<T>, handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit)
Content copied to clipboard
Link copied to clipboard
fun StatusPagesConfig.statusFile(vararg code: HttpStatusCode, filePattern: String)
Content copied to clipboard
Register a status page file(s) using filePattern for multiple status code list