vibe.d beta banner
get vibe.d
0.8.4

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
secure[get, set] boolRequire a secure connection for transmission of this cookie
value[get, set] stringCookie payload

Methods

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

Enums

NameDescription
Encoding
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.