#include <cxxtools/http/messageheader.h>

Inheritance diagram for cxxtools::http::MessageHeader:
cxxtools::http::ReplyHeader cxxtools::http::RequestHeader

Classes

class  const_iterator

Public Types

typedef std::pair< const char
*, const char * > 
value_type

Public Member Functions

 MessageHeader ()
virtual ~MessageHeader ()
void clear ()
void setHeader (const char *key, const char *value, bool replace=true)
void addHeader (const char *key, const char *value)
void removeHeader (const char *key)
const char * getHeader (const char *key) const
bool hasHeader (const char *key) const
bool isHeaderValue (const char *key, const char *value) const
const_iterator begin () const
const_iterator end () const
unsigned httpVersionMajor () const
unsigned httpVersionMinor () const
void httpVersion (unsigned major, unsigned minor)
bool chunkedTransferEncoding () const
std::size_t contentLength () const
bool keepAlive () const

Static Public Member Functions

static char * htdateCurrent (char *buffer)
 Returns a properly formatted current time-string, as needed in http.

Static Public Attributes

static const unsigned MAXHEADERSIZE = 4096

Member Typedef Documentation

typedef std::pair<const char*, const char*> cxxtools::http::MessageHeader::value_type

Constructor & Destructor Documentation

cxxtools::http::MessageHeader::MessageHeader ( )
inline
virtual cxxtools::http::MessageHeader::~MessageHeader ( )
inlinevirtual

Member Function Documentation

void cxxtools::http::MessageHeader::addHeader ( const char *  key,
const char *  value 
)
inline
const_iterator cxxtools::http::MessageHeader::begin ( ) const
inline
bool cxxtools::http::MessageHeader::chunkedTransferEncoding ( ) const
void cxxtools::http::MessageHeader::clear ( )
std::size_t cxxtools::http::MessageHeader::contentLength ( ) const
const_iterator cxxtools::http::MessageHeader::end ( ) const
inline
const char* cxxtools::http::MessageHeader::getHeader ( const char *  key) const
bool cxxtools::http::MessageHeader::hasHeader ( const char *  key) const
inline
static char* cxxtools::http::MessageHeader::htdateCurrent ( char *  buffer)
static

Returns a properly formatted current time-string, as needed in http.

The buffer must have at least 30 bytes.

void cxxtools::http::MessageHeader::httpVersion ( unsigned  major,
unsigned  minor 
)
inline
unsigned cxxtools::http::MessageHeader::httpVersionMajor ( ) const
inline
unsigned cxxtools::http::MessageHeader::httpVersionMinor ( ) const
inline
bool cxxtools::http::MessageHeader::isHeaderValue ( const char *  key,
const char *  value 
) const
bool cxxtools::http::MessageHeader::keepAlive ( ) const
void cxxtools::http::MessageHeader::removeHeader ( const char *  key)
void cxxtools::http::MessageHeader::setHeader ( const char *  key,
const char *  value,
bool  replace = true 
)

Member Data Documentation

const unsigned cxxtools::http::MessageHeader::MAXHEADERSIZE = 4096
static

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