Loading...
Searching...
No Matches
THttpHeader Class Reference
#include <thttpheader.h>
Inheritance diagram for THttpHeader:

Collaboration diagram for THttpHeader:

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) |
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.
◆ 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()
|
inlinevirtual |
Member Function Documentation
◆ majorVersion()
|
inlinevirtual |
Returns the major protocol-version of the HTTP header.
◆ minorVersion()
|
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()
|
virtual |
Returns a byte array representation of the HTTP header.
Reimplemented from TInternetMessageHeader.
Reimplemented in THttpRequestHeader, and THttpResponseHeader.
Member Data Documentation
◆ _majorVersion
|
protected |
◆ _minorVersion
| protected |
The documentation for this class was generated from the following files:
- src/thttpheader.h
- src/thttpheader.cpp

Public Member Functions inherited from