CookieParser

Server-side cookie parser. See RFC 2109 for details.

Constructors

this
this(CookieStack stack)

Members

Functions

parse
bool parse(const(char)[] header)

Locate the next token from the provided buffer, and map a buffer reference into token. Returns true if a token was located, false otherwise.

scan
size_t scan(const(void)[] data)

Callback for iterator.next(). We scan for name-value pairs, populating Cookie instances along the way.

Static functions

toLower
char[] toLower(char[] src)

in-place conversion to lowercase

Meta