Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QHttpResponseHeader Class Reference

Inheritance diagram for QHttpResponseHeader:

QHttpHeader

List of all members.


Detailed Description

The QHttpResponseHeader class contains response header information for HTTP.

network

This class is used by the QHttp class to report the header information that the client received from the server.

HTTP responses have a status code that indicates the status of the response. This code is a 3-digit integer result code (for details see to RFC 1945). In addition to the status code, you can also specify a human-readable text that describes the reason for the code ("reason phrase"). This class allows you to get the status code and the reason phrase.

See also:
QHttpRequestHeader QHttp

Definition at line 92 of file qhttp.h.


Public Member Functions

void addValue (const QString &key, const QString &value)
QStringList allValues (const QString &key) const
uint contentLength () const
QString contentType () const
bool hasContentLength () const
bool hasContentType () const
bool hasKey (const QString &key) const
bool isValid () const
QStringList keys () const
int majorVersion () const
int minorVersion () const
QHttpResponseHeaderoperator= (const QHttpResponseHeader &header)
 QHttpResponseHeader (int code, const QString &text=QString(), int majorVer=1, int minorVer=1)
 QHttpResponseHeader (const QString &str)
 QHttpResponseHeader (const QHttpResponseHeader &header)
 QHttpResponseHeader ()
QString reasonPhrase () const
void removeAllValues (const QString &key)
void removeValue (const QString &key)
void setContentLength (int len)
void setContentType (const QString &type)
void setStatusLine (int code, const QString &text=QString(), int majorVer=1, int minorVer=1)
void setValue (const QString &key, const QString &value)
void setValues (const QList< QPair< QString, QString > > &values)
int statusCode () const
QString toString () const
QString value (const QString &key) const
QList< QPair< QString, QString > > values () const

Protected Member Functions

bool parse (const QString &str)
bool parseLine (const QString &line, int number)
void setValid (bool)

Protected Attributes

QHttpHeaderPrivate * d_ptr

Friends

class QHttpPrivate

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index