RequestCookies

open class RequestCookies

Server request’s cookies

Constructors

<init>

RequestCookies(request: ApplicationRequest)

Server request’s cookies

Properties

rawCookies

val rawCookies: Map<String, String>

RAW cookie values, not decoded so could have percent encoded values, quotes, escape characters and so on. It is recommended to use get instead

request

val request: ApplicationRequest

application request to fetch cookies from

Functions

fetchCookies

open fun fetchCookies(): Map<String, String>

Fetch cookies from request. Could access cookies using engine’s native API.

get

operator fun get(
    name: String,
    encoding: CookieEncoding = CookieEncoding.URI_ENCODING
): String?

Get cookie name value decoding cookies using encoding strategy

Inheritors

ServletApplicationRequestCookies

class ServletApplicationRequestCookies : RequestCookies