#include <tinternetmessageheader.h>
|
void | parse (const QByteArray &header) |
|
The TInternetMessageHeader class contains internet message headers.
◆ RawHeaderPair
◆ RawHeaderPairList
◆ TInternetMessageHeader() [1/3]
TInternetMessageHeader::TInternetMessageHeader |
( |
| ) |
|
|
inline |
Constructs an empty Internet message header.
◆ TInternetMessageHeader() [2/3]
◆ TInternetMessageHeader() [3/3]
TInternetMessageHeader::TInternetMessageHeader |
( |
const QByteArray & |
str | ) |
|
Constructs an Internet message header by parsing str.
◆ ~TInternetMessageHeader()
virtual TInternetMessageHeader::~TInternetMessageHeader |
( |
| ) |
|
|
inlinevirtual |
◆ addRawHeader()
void TInternetMessageHeader::addRawHeader |
( |
const QByteArray & |
key, |
|
|
const QByteArray & |
value |
|
) |
| |
Sets the raw header key to be of value value.
If key was previously set, it is added multiply.
◆ clear()
void TInternetMessageHeader::clear |
( |
| ) |
|
Removes all the entries from the Internet message header.
◆ contentLength()
int64_t TInternetMessageHeader::contentLength |
( |
| ) |
const |
Returns the value of the header field content-length.
◆ contentType()
QByteArray TInternetMessageHeader::contentType |
( |
| ) |
const |
Returns the value of the header field content-type.
◆ date()
QByteArray TInternetMessageHeader::date |
( |
| ) |
const |
Returns the value of the header field Date.
◆ hasRawHeader()
bool TInternetMessageHeader::hasRawHeader |
( |
const QByteArray & |
key | ) |
const |
Returns true if the Internet message header has an entry with the given key; otherwise returns false.
◆ isEmpty()
bool TInternetMessageHeader::isEmpty |
( |
| ) |
const |
Returns true if the Internet message header is empty; otherwise returns false.
◆ operator=()
Assigns other to this internet message header and returns a reference to this header.
◆ parse()
void TInternetMessageHeader::parse |
( |
const QByteArray & |
header | ) |
|
|
protected |
Parses the header.
This function is for internal use only.
◆ rawHeader()
QByteArray TInternetMessageHeader::rawHeader |
( |
const QByteArray & |
key | ) |
const |
Returns the raw value for the entry with the given key.
If no entry has this key, an empty byte array is returned.
◆ rawHeaderList()
QByteArrayList TInternetMessageHeader::rawHeaderList |
( |
| ) |
const |
Returns a list of all raw headers.
◆ removeAllRawHeaders()
void TInternetMessageHeader::removeAllRawHeaders |
( |
const QByteArray & |
key | ) |
|
Removes all the entries with the key key from the HTTP header.
◆ removeRawHeader()
void TInternetMessageHeader::removeRawHeader |
( |
const QByteArray & |
key | ) |
|
Removes the entries with the key key from the HTTP header.
◆ setContentLength()
void TInternetMessageHeader::setContentLength |
( |
int64_t |
len | ) |
|
Sets the value of the header field content-length to len.
◆ setContentType()
void TInternetMessageHeader::setContentType |
( |
const QByteArray & |
type | ) |
|
Sets the value of the header field content-type to type.
◆ setCurrentDate()
void TInternetMessageHeader::setCurrentDate |
( |
| ) |
|
Sets the value of the header field Date to the current date/time.
◆ setDate() [1/2]
void TInternetMessageHeader::setDate |
( |
const QByteArray & |
date | ) |
|
Sets the value of the header field Date to date.
◆ setDate() [2/2]
void TInternetMessageHeader::setDate |
( |
const QDateTime & |
dateTime | ) |
|
Sets the value of the header field Date to localTime as the local time on the computer.
◆ setRawHeader()
void TInternetMessageHeader::setRawHeader |
( |
const QByteArray & |
key, |
|
|
const QByteArray & |
value |
|
) |
| |
Sets the raw header key to be of value value.
If key was previously set, it is overridden.
◆ toByteArray()
QByteArray TInternetMessageHeader::toByteArray |
( |
| ) |
const |
|
virtual |
◆ _contentLength
int64_t TInternetMessageHeader::_contentLength {-1} |
|
mutableprotected |
◆ _headerPairList
The documentation for this class was generated from the following files: