head

fun Route.head(path: Regex, body: RoutingHandler): Route

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

Example:

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

Report a problem


fun Route.head(path: String, body: RoutingHandler): Route

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

Report a problem

See also


Builds a route to match HEAD requests.

Report a problem

See also