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

#include <thttpheader.h>

Inheritance diagram for THttpHeader:
Inheritance graph
[legend]
Collaboration diagram for THttpHeader:
Collaboration graph
[legend]

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 ( )

Constructor.

Constructor.

◆ 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 ( )
inlinevirtual

Member Function Documentation

◆ majorVersion()

int THttpHeader::majorVersion ( ) const
inlinevirtual

Returns the major protocol-version of the HTTP header.

◆ minorVersion()

int THttpHeader::minorVersion ( ) const
inlinevirtual

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
virtual

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}
protected

◆ _minorVersion

int THttpHeader::_minorVersion {1}
protected

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