restcgi::general_hdr Class Reference

Inheritance diagram for restcgi::general_hdr:

restcgi::hdr restcgi::cookies::observer restcgi::request_hdr restcgi::response_hdr List of all members.

Detailed Description

General HTTP header fields.

The cookies are parsed on requests automatically by this header class. For responses the application must call cookies() and insert any cookie to be sent in the response. This will keep the "Set-Cookie" hdr field in sync with any changes to cookies().

See also:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.5


Public Types

typedef restcgi::cookies cookies_type
 cookies type

Public Member Functions

std::string cache_control () const
 get cache control
bool cache_control (const std::string &v)
 set cache control
std::string connection () const
 get connection
bool connection (const std::string &v)
 set connection
bool date (date_time &v, const date_time &dflt) const
 get date as date_time
bool date (const date_time &v)
 set date from date_time
std::string pragma () const
 get pragma
bool pragma (const std::string &v)
 set pragma
std::string trailer () const
 get trailer
bool trailer (const std::string &v)
 set trailer
std::string transfer_encoding () const
 get transfer encoding
bool transfer_encoding (const std::string &v)
 set transfer encoding
std::string upgrade () const
 get upgrade
bool upgrade (const std::string &v)
 set upgrade
std::string via () const
 get via
bool via (const std::string &v)
 set via
std::string warning () const
 get warning
bool warning (const std::string &v)
 set warning
cookies_typecookies ()
 get cookies (see class description)
const cookies_typecookies () const
 get cookies (see class description)

Protected Member Functions

 general_hdr (int categories)
 Construct.


Generated on Fri May 15 11:27:12 2009 for restcgi by  doxygen 1.4.7