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

Cookie Class Reference

Inheritance diagram for Cookie:

IWritable List of all members.

Public Member Functions

 this ()
 this (char[] name, char[] value)
void setName (char[] name)
void setValue (char[] value)
void setVersion (uint vrsn)
void setPath (char[] path)
void setDomain (char[] domain)
void setComment (char[] comment)
void setMaxAge (long maxAge)
void setSecure (bool secure)
void write (IWriter writer)
void clear ()

Private Attributes

char[] name
char[] path
char[] value
char[] domain
char[] comment
uint vrsn = 1
long maxAge
bool secure

Detailed Description

Defines the Cookie class, and the means for reading & writing them. Cookie implementation conforms with RFC 2109, but supports parsing of server-side cookies only. Client-side cookies are supported in terms of output, but response parsing is not yet implemented ...

See over here for the RFC document.

Definition at line 71 of file HttpCookies.d.


Member Function Documentation

this  )  [inline]
 

Construct an empty client-side cookie. You add these to an output request using HttpClient.addCookie(), or the equivalent.

Definition at line 90 of file HttpCookies.d.

this char[]  name,
char[]  value
[inline]
 

Construct a cookie with the provided attributes. You add these to an output request using HttpClient.addCookie(), or the equivalent.

Definition at line 102 of file HttpCookies.d.

References setName(), and setValue().

void setName char[]  name  )  [inline]
 

Set the name of this cookie

Definition at line 114 of file HttpCookies.d.

Referenced by CookieParser::next(), and this().

void setValue char[]  value  )  [inline]
 

Set the value of this cookie

Definition at line 125 of file HttpCookies.d.

Referenced by CookieParser::next(), and this().

void setVersion uint  vrsn  )  [inline]
 

Set the version of this cookie

Definition at line 136 of file HttpCookies.d.

Referenced by CookieParser::next().

void setPath char[]  path  )  [inline]
 

Set the path of this cookie

Definition at line 147 of file HttpCookies.d.

Referenced by CookieParser::next().

void setDomain char[]  domain  )  [inline]
 

Set the domain of this cookie

Definition at line 158 of file HttpCookies.d.

Referenced by CookieParser::next().

void setComment char[]  comment  )  [inline]
 

Set the comment associated with this cookie

Definition at line 169 of file HttpCookies.d.

void setMaxAge long  maxAge  )  [inline]
 

Set the maximum duration of this cookie

Definition at line 180 of file HttpCookies.d.

void setSecure bool  secure  )  [inline]
 

Indicate wether this cookie should be considered secure or not

Definition at line 191 of file HttpCookies.d.

void write IWriter  writer  )  [inline]
 

Output the cookie as a text stream, via the provided IWriter.

Reimplemented from IWritable.

Definition at line 202 of file HttpCookies.d.

References comment, domain, maxAge, path, IWriter::put(), secure, and vrsn.

Referenced by HttpMutableCookies::add().

void clear  )  [inline]
 

Reset this cookie

Definition at line 238 of file HttpCookies.d.

References comment, domain, maxAge, path, secure, and vrsn.


Member Data Documentation

char [] name [private]
 

Definition at line 73 of file HttpCookies.d.

char [] path [private]
 

Definition at line 73 of file HttpCookies.d.

Referenced by clear(), and write().

char [] value [private]
 

Definition at line 73 of file HttpCookies.d.

char [] domain [private]
 

Definition at line 73 of file HttpCookies.d.

Referenced by clear(), and write().

char [] comment [private]
 

Definition at line 73 of file HttpCookies.d.

Referenced by clear(), and write().

uint vrsn = 1 [private]
 

Definition at line 78 of file HttpCookies.d.

Referenced by clear(), and write().

long maxAge [private]
 

Definition at line 79 of file HttpCookies.d.

Referenced by clear(), and write().

bool secure [private]
 

Definition at line 80 of file HttpCookies.d.

Referenced by clear(), and write().


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 00:31:07 2005 for Mango by doxygen 1.3.6