#include <tnt/cookie.h>

Public Member Functions

 Cookie ()
 Cookie (const std::string &v, unsigned maxAge=0)
 Cookie (const char *v, unsigned maxAge=0)
const std::string & getValue () const
std::string getAttr (const std::string &name) const
 operator const std::string & () const
void setAttr (const std::string &name, const std::string &value)
bool hasAttr (const std::string &name) const
unsigned getMaxAge () const
std::string getComment () const
std::string getDomain () const
std::string getPath () const
std::string getVersion () const
std::string getExpires () const
bool isSecure () const
void setMaxAge (unsigned seconds)
void setComment (const std::string &value)
void setDomain (const std::string &value)
void setPath (const std::string &value)
void setVersion (const std::string &value)
void setExpires (const std::string &value)
void setSecure (bool f=true)
bool hasMaxAge () const
bool hasComment () const
bool hasDomain () const
bool hasPath () const
bool hasVersion () const
bool hasExpires () const

Static Public Attributes

static const std::string maxAge
static const std::string comment
static const std::string domain
static const std::string path
static const std::string secure
static const std::string version
static const std::string expires

Friends

class CookieParser
class HttpReply
std::ostream & operator<< (std::ostream &out, const Cookies &c)

Constructor & Destructor Documentation

tnt::Cookie::Cookie ( )
inline
tnt::Cookie::Cookie ( const std::string &  v,
unsigned  maxAge = 0 
)
inline
tnt::Cookie::Cookie ( const char *  v,
unsigned  maxAge = 0 
)
inline

Member Function Documentation

std::string tnt::Cookie::getAttr ( const std::string &  name) const
inline
std::string tnt::Cookie::getComment ( ) const
inline
std::string tnt::Cookie::getDomain ( ) const
inline
std::string tnt::Cookie::getExpires ( ) const
inline
unsigned tnt::Cookie::getMaxAge ( ) const
std::string tnt::Cookie::getPath ( ) const
inline
const std::string& tnt::Cookie::getValue ( ) const
inline
std::string tnt::Cookie::getVersion ( ) const
inline
bool tnt::Cookie::hasAttr ( const std::string &  name) const
inline
bool tnt::Cookie::hasComment ( ) const
inline
bool tnt::Cookie::hasDomain ( ) const
inline
bool tnt::Cookie::hasExpires ( ) const
inline
bool tnt::Cookie::hasMaxAge ( ) const
inline
bool tnt::Cookie::hasPath ( ) const
inline
bool tnt::Cookie::hasVersion ( ) const
inline
bool tnt::Cookie::isSecure ( ) const
inline
tnt::Cookie::operator const std::string & ( ) const
inline
void tnt::Cookie::setAttr ( const std::string &  name,
const std::string &  value 
)
inline
void tnt::Cookie::setComment ( const std::string &  value)
inline
void tnt::Cookie::setDomain ( const std::string &  value)
inline
void tnt::Cookie::setExpires ( const std::string &  value)
inline
void tnt::Cookie::setMaxAge ( unsigned  seconds)
void tnt::Cookie::setPath ( const std::string &  value)
inline
void tnt::Cookie::setSecure ( bool  f = true)
inline
void tnt::Cookie::setVersion ( const std::string &  value)
inline

Friends And Related Function Documentation

friend class CookieParser
friend
friend class HttpReply
friend
std::ostream& operator<< ( std::ostream &  out,
const Cookies c 
)
friend

Member Data Documentation

const std::string tnt::Cookie::comment
static
const std::string tnt::Cookie::domain
static
const std::string tnt::Cookie::expires
static
const std::string tnt::Cookie::maxAge
static
const std::string tnt::Cookie::path
static
const std::string tnt::Cookie::secure
static
const std::string tnt::Cookie::version
static

The documentation for this class was generated from the following file: