#include <qhttp.h>
Public Member Functions | |
QHttpHeader () | |
QHttpHeader (const QHttpHeader &header) | |
QHttpHeader (const QString &str) | |
virtual | ~QHttpHeader () |
QHttpHeader & | operator= (const QHttpHeader &h) |
void | setValue (const QString &key, const QString &value) |
void | setValues (const QList< QPair< QString, QString > > &values) |
void | addValue (const QString &key, const QString &value) |
QList< QPair< QString, QString > > | values () const |
bool | hasKey (const QString &key) const |
QStringList | keys () const |
QString | value (const QString &key) const |
QStringList | allValues (const QString &key) const |
void | removeValue (const QString &key) |
void | removeAllValues (const QString &key) |
bool | hasContentLength () const |
uint | contentLength () const |
void | setContentLength (int len) |
bool | hasContentType () const |
QString | contentType () const |
void | setContentType (const QString &type) |
virtual QString | toString () const |
bool | isValid () const |
virtual int | majorVersion () const =0 |
virtual int | minorVersion () const =0 |
Protected Member Functions | |
virtual bool | parseLine (const QString &line, int number) |
bool | parse (const QString &str) |
void | setValid (bool) |
QHttpHeader (QHttpHeaderPrivate &dd, const QString &str=QString()) | |
QHttpHeader (QHttpHeaderPrivate &dd, const QHttpHeader &header) | |
Protected Attributes | |
QScopedPointer< QHttpHeaderPrivate > | d_ptr |
QHttpHeader | ( | ) |
QHttpHeader | ( | const QHttpHeader & | header | ) |
QHttpHeader | ( | const QString & | str | ) |
|
virtual |
|
protected |
|
protected |
QHttpHeader& operator= | ( | const QHttpHeader & | h | ) |
bool hasKey | ( | const QString & | key | ) | const |
QStringList keys | ( | ) | const |
QStringList allValues | ( | const QString & | key | ) | const |
bool hasContentLength | ( | ) | const |
uint contentLength | ( | ) | const |
bool hasContentType | ( | ) | const |
QString contentType | ( | ) | const |
|
virtual |
Reimplemented in QHttpRequestHeader, and QHttpResponseHeader.
bool isValid | ( | ) | const |
|
pure virtual |
Implemented in QHttpRequestHeader, and QHttpResponseHeader.
|
pure virtual |
Implemented in QHttpRequestHeader, and QHttpResponseHeader.
Reimplemented in QHttpRequestHeader, and QHttpResponseHeader.
|
protected |
|
protected |
|
protected |