requireCookie

fun ApplicationCall.requireCookie(name: String, encoding: CookieEncoding = CookieEncoding.URI_ENCODING): String(source)

Get cookie value associated with name or fail with MissingRequestParameterException

Report a problem

Throws

if no cookie with name is present