Cookie

Undocumented in source.

Members

Enums

Encoding
enum Encoding
Undocumented in source.
SameSite
enum SameSite
Undocumented in source.

Functions

expire
void expire(SysTime expire_time)

Sets the "expires" and "max-age" attributes to limit the life time of the cookie.

expire
void expire(Duration max_age)

Sets the "expires" and "max-age" attributes to limit the life time of the cookie.

setValue
void setValue(string value, Encoding encoding)

Sets the cookie value encoded with the specified encoding.

writeString
void writeString(R dst, string name)

Writes out the full cookie in HTTP compatible format.

Properties

domain
string domain [@property setter]
string domain [@property getter]

The domain for which the cookie is valid

expires
string expires [@property setter]
SysTime expires [@property setter]
string expires [@property getter]

Expiration date of the cookie

httpOnly
bool httpOnly [@property setter]
bool httpOnly [@property getter]

Prevents access to the cookie from scripts.

maxAge
long maxAge [@property setter]
Duration maxAge [@property setter]
long maxAge [@property getter]

Maximum life time of the cookie

path
string path [@property setter]
string path [@property getter]

The path/local URI for which the cookie is valid

rawValue
string rawValue [@property setter]
string rawValue [@property getter]

Undecoded cookie payload

sameSite
Cookie.SameSite sameSite [@property setter]
Cookie.SameSite sameSite [@property getter]

Prevent cross-site request forgery.

secure
bool secure [@property setter]
bool secure [@property getter]

Require a secure connection for transmission of this cookie

value
string value [@property setter]
string value [@property getter]

Cookie payload

Meta