Main Page | Class Hierarchy | Alphabetical List | Class List | 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

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 252 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 264 of file HttpCookies.d.

References cookies, and resize().

void reset  )  [inline]
 

Pop the stack all the way to zero

Definition at line 276 of file HttpCookies.d.

References depth.

Referenced by HttpCookies::reset().

Cookie push  )  [inline]
 

Return a fresh cookie from the stack

Definition at line 287 of file HttpCookies.d.

References cookies, depth, and resize().

Referenced by CookieParser::next().

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

Resize the stack such that is has more room.

Definition at line 300 of file HttpCookies.d.

Referenced by push(), and this().

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

Iterate over all cookies in stack

Definition at line 314 of file HttpCookies.d.

References cookies, and depth.


Member Data Documentation

int depth [private]
 

Definition at line 254 of file HttpCookies.d.

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

Cookie [] cookies [private]
 

Definition at line 255 of file HttpCookies.d.

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


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:01 2004 for Mango by doxygen 1.3.6