Package-level declarations

Functions

Link copied to clipboard
fun HttpServletRequest.fullUrl(): String

Build the absolute request URL including the query string, if present.

Link copied to clipboard
fun HttpServletRequest.readCookie(name: String): String?

Read a cookie value by name from the request.

Link copied to clipboard
fun HttpServletResponse.sendUnauthorized(code: String, reason: String, wwwAuthenticate: String? = null)

Write a 401 Unauthorized response with a compact JSON body and optional WWW-Authenticate header.