Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 75 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 94 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 106 of file HttpCookies.d.

void setName char[]  name  )  [inline]
 

Set the name of this cookie

Definition at line 118 of file HttpCookies.d.

Referenced by CookieParser::next().

void setValue char[]  value  )  [inline]
 

Set the value of this cookie

Definition at line 129 of file HttpCookies.d.

Referenced by CookieParser::next().

void setVersion uint  vrsn  )  [inline]
 

Set the version of this cookie

Definition at line 140 of file HttpCookies.d.

Referenced by CookieParser::next().

void setPath char[]  path  )  [inline]
 

Set the path of this cookie

Definition at line 151 of file HttpCookies.d.

Referenced by CookieParser::next().

void setDomain char[]  domain  )  [inline]
 

Set the domain of this cookie

Definition at line 162 of file HttpCookies.d.

Referenced by CookieParser::next().

void setComment char[]  comment  )  [inline]
 

Set the comment associated with this cookie

Definition at line 173 of file HttpCookies.d.

void setMaxAge long  maxAge  )  [inline]
 

Set the maximum duration of this cookie

Definition at line 184 of file HttpCookies.d.

void setSecure bool  secure  )  [inline]
 

Indicate wether this cookie should be considered secure or not

Definition at line 195 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 206 of file HttpCookies.d.

References Int, Long, and IWriter::put().

Referenced by HttpMutableCookies::add().

void clear  )  [inline]
 

Reset this cookie

Definition at line 242 of file HttpCookies.d.


Member Data Documentation

char [] name [private]
 

Definition at line 77 of file HttpCookies.d.

char [] path [private]
 

Definition at line 77 of file HttpCookies.d.

char [] value [private]
 

Definition at line 77 of file HttpCookies.d.

char [] domain [private]
 

Definition at line 77 of file HttpCookies.d.

char [] comment [private]
 

Definition at line 77 of file HttpCookies.d.

uint vrsn = 1 [private]
 

Definition at line 82 of file HttpCookies.d.

long maxAge [private]
 

Definition at line 83 of file HttpCookies.d.

bool secure [private]
 

Definition at line 84 of file HttpCookies.d.


The documentation for this class was generated from the following file:
Generated on Mon Nov 14 10:59:50 2005 for Mango by  doxygen 1.4.0