HttpCookies

Wrapper around a http cookie collections.

Constructors

this
this(HttpClient client)

Creates a new http cookie collection.

Members

Functions

create
void create(HttpCookieType cookieType, string name, string value, long maxAge, string path)

Creates a cookie.

createBuffered
void createBuffered(HttpCookieType cookieType, string name, ubyte[] buffer, long maxAge, string path)

Creates a cookie.

get
string get(string name)

Gets a cookie.

getAuthCookie
string getAuthCookie()

Gets the auth cookie.

getBuffered
ubyte[] getBuffered(string name)

Gets a buffered cookie encoded as a SENC encoded string.

has
bool has(string name)

Checks whether a request has a cookie or not.

remove
void remove(string name)

Removes a cookie.

Properties

hasAuthCookie
bool hasAuthCookie [@property getter]

Checks whether the auth cookie is present or not.

Meta