TreeFrogFramework  1.29
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
QByteArrayList 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)
qint64 contentLength () const
void setContentLength (qint64 len)
QByteArray date () const
void setDate (const QByteArray &date)
void setDate (const QDateTime &dateTime)
void setCurrentDate ()
TInternetMessageHeaderoperator= (const TInternetMessageHeader &other)

Protected Attributes

int _majorVersion {1}
int _minorVersion {1}
- Protected Attributes inherited from TInternetMessageHeader
RawHeaderPairList headerPairList

Additional Inherited Members

- Protected Types inherited from TInternetMessageHeader
using RawHeaderPair = QPair< QByteArray, QByteArray >
using RawHeaderPairList = QList< RawHeaderPair >
- 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() [1/3]

THttpHeader::THttpHeader ( )



◆ THttpHeader() [2/3]

THttpHeader::THttpHeader ( const THttpHeader other)

Copy constructor.

◆ THttpHeader() [3/3]

THttpHeader::THttpHeader ( const QByteArray &  str)

Constructs an HTTP header by parsing str.

◆ ~THttpHeader()

virtual THttpHeader::~THttpHeader ( )

Member Function Documentation

◆ majorVersion()

int THttpHeader::majorVersion ( ) const

Returns the major protocol-version of the HTTP header.

◆ minorVersion()

int THttpHeader::minorVersion ( ) const

Returns the minor protocol-version of the HTTP header.

◆ operator=()

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

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

◆ toByteArray()

QByteArray THttpHeader::toByteArray ( ) const

Returns a byte array representation of the HTTP header.

Reimplemented from TInternetMessageHeader.

Reimplemented in THttpResponseHeader, and THttpRequestHeader.

Member Data Documentation

◆ _majorVersion

int THttpHeader::_majorVersion {1}

◆ _minorVersion

int THttpHeader::_minorVersion {1}

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