TreeFrogFramework 2.10
|
#include <thttpheader.h>
Public Member Functions | |
THttpHeader () | |
THttpHeader (const THttpHeader &other) | |
THttpHeader (const QByteArray &str) | |
virtual | ~THttpHeader () |
THttpHeader & | operator= (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) |
int64_t | contentLength () const |
void | setContentLength (int64_t len) |
QByteArray | date () const |
void | setDate (const QByteArray &date) |
void | setDate (const QDateTime &dateTime) |
void | setCurrentDate () |
TInternetMessageHeader & | operator= (const TInternetMessageHeader &other) |
Protected Attributes | |
int | _majorVersion {1} |
int | _minorVersion {1} |
Protected Attributes inherited from TInternetMessageHeader | |
RawHeaderPairList | _headerPairList |
int64_t | _contentLength {-1} |
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) |
The THttpHeader class is the abstract base class of request or response header information for HTTP.
THttpHeader::THttpHeader | ( | ) |
Constructor.
THttpHeader::THttpHeader | ( | const THttpHeader & | other | ) |
Copy constructor.
THttpHeader::THttpHeader | ( | const QByteArray & | str | ) |
Constructs an HTTP header by parsing str.
|
inlinevirtual |
|
inlinevirtual |
Returns the major protocol-version of the HTTP header.
|
inlinevirtual |
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.
|
virtual |
Returns a byte array representation of the HTTP header.
Reimplemented from TInternetMessageHeader.
Reimplemented in THttpRequestHeader, and THttpResponseHeader.
|
protected |
|
protected |