Configuration

class Configuration

Status pages feature config

Constructors

<init>

Configuration()

Status pages feature config

Properties

exceptions

val exceptions: MutableMap<Class<*>, suspend PipelineContext<*, ApplicationCall>.(Throwable) -> Unit>

Exception handlers map by exception class

statuses

Status handlers by status code

Functions

exception

fun <T : Throwable> exception(
    handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit
): Unit

Register exception handler for exception type T and it’s children

fun <T : Throwable> exception(
    klass: Class<T>,
    handler: suspend PipelineContext<Unit, ApplicationCall>.(T) -> Unit
): Unit

Register exception handler for exception class klass and it’s children

status

fun status(
    vararg status: HttpStatusCode,
    handler: suspend PipelineContext<*, ApplicationCall>.(HttpStatusCode) -> Unit
): Unit

Register status handler for status code

Extension Functions

statusFile

fun Configuration.statusFile(
    vararg code: HttpStatusCode,
    filePattern: String
): Unit

Register a status page file(s) using filePattern for multiple status code list