Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CookieStack Class Reference

List of all members.

Public Member Functions

 this (int size)
void reset ()
Cookie push ()
int opApply (int(*dg)(inout Cookie))

Static Private Member Functions

static final void resize (inout Cookie[] cookies, int size)

Private Attributes

int depth
Cookie[] cookies

Detailed Description

Implements a stack of cookies. Each cookie is pushed onto the stack by a parser, which takes its input from HttpHeaders. The stack can be populated for both client and server side cookies.

Definition at line 261 of file HttpCookies.d.


Member Function Documentation

this int  size  )  [inline]
 

Construct a cookie stack with the specified initial extent. The stack will grow as necessary over time.

Definition at line 273 of file HttpCookies.d.

References cookies, and resize().

void reset  )  [inline]
 

Pop the stack all the way to zero

Definition at line 285 of file HttpCookies.d.

References depth.

Referenced by HttpCookies::reset().

Cookie push  )  [inline]
 

Return a fresh cookie from the stack

Definition at line 296 of file HttpCookies.d.

References cookies, depth, and resize().

Referenced by CookieParser::next().

static final void resize inout Cookie[]  cookies,
int  size
[inline, static, private]
 

Resize the stack such that is has more room.

Definition at line 309 of file HttpCookies.d.

Referenced by push(), and this().

int opApply int(*)(inout Cookie dg  )  [inline]
 

Iterate over all cookies in stack

Definition at line 323 of file HttpCookies.d.

References cookies, and depth.


Member Data Documentation

int depth [private]
 

Definition at line 263 of file HttpCookies.d.

Referenced by opApply(), push(), and reset().

Cookie [] cookies [private]
 

Definition at line 264 of file HttpCookies.d.

Referenced by opApply(), push(), and this().


The documentation for this class was generated from the following file:
Generated on Fri Nov 11 18:44:32 2005 for Mango by  doxygen 1.4.0