TreeFrogFramework 2.10
|
#include <tcontentheader.h>
Public Member Functions | |
TContentHeader () | |
TContentHeader (const TContentHeader &other) | |
TContentHeader (const QByteArray &str) | |
virtual | ~TContentHeader () |
TContentHeader & | operator= (const TContentHeader &other) |
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 () |
virtual QByteArray | toByteArray () const |
TInternetMessageHeader & | operator= (const TInternetMessageHeader &other) |
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) |
Protected Attributes inherited from TInternetMessageHeader | |
RawHeaderPairList | _headerPairList |
int64_t | _contentLength {-1} |
The TContentHeader class contains content header information for HTTP.
TContentHeader::TContentHeader | ( | ) |
Constructor.
TContentHeader::TContentHeader | ( | const TContentHeader & | other | ) |
Copy constructor.
TContentHeader::TContentHeader | ( | const QByteArray & | str | ) |
Constructor.
|
inlinevirtual |
TContentHeader & TContentHeader::operator= | ( | const TContentHeader & | other | ) |
Assigns other to this content header and returns a reference to this content header.