TreeFrogFramework  1.18
Public Member Functions | Protected Attributes | List of all members
THttpHeader Class Reference

#include <thttpheader.h>

Inheritance diagram for THttpHeader:
Inheritance graph
Collaboration diagram for THttpHeader:
Collaboration graph

Public Member Functions

 THttpHeader ()
 THttpHeader (const THttpHeader &other)
 THttpHeader (const QByteArray &str)
virtual ~THttpHeader ()
THttpHeaderoperator= (const THttpHeader &other)
virtual QByteArray toByteArray () const
virtual int majorVersion () const
virtual int minorVersion () const
- Public Member Functions inherited from TInternetMessageHeader
 TInternetMessageHeader ()
 TInternetMessageHeader (const TInternetMessageHeader &other)
 TInternetMessageHeader (const QByteArray &str)
virtual ~TInternetMessageHeader ()
bool hasRawHeader (const QByteArray &key) const
QByteArray rawHeader (const QByteArray &key) const
QList< QByteArray > rawHeaderList () const
void setRawHeader (const QByteArray &key, const QByteArray &value)
void addRawHeader (const QByteArray &key, const QByteArray &value)
void removeAllRawHeaders (const QByteArray &key)
void removeRawHeader (const QByteArray &key)
bool isEmpty () const
void clear ()
QByteArray contentType () const
void setContentType (const QByteArray &type)
uint contentLength () const
void setContentLength (int len)
QByteArray date () const
void setDate (const QByteArray &date)
void setDate (const QDateTime &dateTime)
void setCurrentDate ()
TInternetMessageHeaderoperator= (const TInternetMessageHeader &other)

Protected Attributes

int majVersion
int minVersion
- Protected Attributes inherited from TInternetMessageHeader
RawHeaderPairList headerPairList

Additional Inherited Members

- Protected Types inherited from TInternetMessageHeader
typedef QPair< QByteArray, QByteArray > RawHeaderPair
typedef QList< RawHeaderPairRawHeaderPairList
- Protected Member Functions inherited from TInternetMessageHeader
void parse (const QByteArray &header)

Detailed Description

The THttpHeader class is the abstract base class of request or response header information for HTTP.

Constructor & Destructor Documentation

THttpHeader::THttpHeader ( )


THttpHeader::THttpHeader ( const THttpHeader other)

Copy constructor.

THttpHeader::THttpHeader ( const QByteArray &  str)

Constructs an HTTP header by parsing str.

virtual THttpHeader::~THttpHeader ( )

Member Function Documentation

int THttpHeader::majorVersion ( ) const

Returns the major protocol-version of the HTTP header.

int THttpHeader::minorVersion ( ) const

Returns the minor protocol-version of the HTTP header.

THttpHeader & THttpHeader::operator= ( const THttpHeader other)

Assigns other to this HTTP header and returns a reference to this HTTP header.

QByteArray THttpHeader::toByteArray ( ) const

Returns a byte array representation of the HTTP header.

Reimplemented from TInternetMessageHeader.

Reimplemented in THttpResponseHeader, and THttpRequestHeader.

Member Data Documentation

int THttpHeader::majVersion
int THttpHeader::minVersion

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