options

Builds a route to match OPTIONS requests with the specified regex path. Named parameters from regex can be accessed via ApplicationCall.parameters.

Example:

options(Regex("/(?<name>.+)/hello")) {
    val name = call.parameters["name"]
    ...
}

Report a problem


Builds a route to match OPTIONS requests with the specified path.

Report a problem

See also


Builds a route to match OPTIONS requests.

Report a problem

See also