vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Class Cookie

class Cookie ;

Properties

NameTypeDescription
domain[get, set] stringThe domain for which the cookie is valid
expires[get, set] stringExpiration date of the cookie
httpOnly[get, set] boolPrevents access to the cookie from scripts.
maxAge[get, set] longMaximum life time of the cookie
path[get, set] stringThe path/local URI for which the cookie is valid
rawValue[get, set] stringUndecoded cookie payload
sameSite[get, set] Cookie.SameSitePrevent cross-site request forgery.
secure[get, set] boolRequire a secure connection for transmission of this cookie
value[get, set] stringCookie payload

Methods

NameDescription
expire (max_age) Sets the "expires" and "max-age" attributes to limit the life time of the cookie.
setValue (value, encoding) Sets the cookie value encoded with the specified encoding.
writeString (dst, name) Writes out the full cookie in HTTP compatible format.

Enums

NameDescription
Encoding
SameSite
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.