#include <ResponseHeader.h> [code]
Inherits Http::Header.
Inheritance diagram for Http::ResponseHeader:


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.
Definition at line 52 of file ResponseHeader.h.
Public Member Functions | |
| ResponseHeader () | |
| ResponseHeader (const QString &str) | |
| ResponseHeader (int statusCode, const QString &reasonPhrase=QString(), int majorVer=1, int minorVer=1) | |
| ResponseHeader (const ResponseHeader &header) | |
| ~ResponseHeader () | |
| Destructor. | |
| ResponseHeader & | operator= (const ResponseHeader &header) |
| void | setStatusLine (int statusCode, const QString &reasonPhrase=QString(), int majorVer=1, int minorVer=1) |
| int | statusCode () const |
| QString | reasonPhrase () const |
| int | majorVersion () const |
| int | minorVersion () const |
| QString | toString () const |
Protected Member Functions | |
| bool | parseLine (const QString &line, int number) |
Private Attributes | |
| auto_ptr< ResponseHeaderPrivate > | d |
|
|
Constructs an empty HTTP response header. Definition at line 48 of file ResponseHeader.cpp. |
|
|
Constructs a HTTP response header from the string str. The string is parsed and the information is set. The str should consist of one or more "\r\n" delimited lines; the first line should be the status-line (format: HTTP-version, space, status-code, space, reason-phrase); each of remaining lines should have the format key, colon, space, value. Definition at line 92 of file ResponseHeader.cpp. |
|
||||||||||||||||||||
|
Definition at line 98 of file ResponseHeader.cpp. |
|
|
Constructs a copy of header. Definition at line 57 of file ResponseHeader.cpp. |
|
|
Destructor.
Definition at line 67 of file ResponseHeader.cpp. |
|
|
Returns the major protocol-version of the HTTP response header.
Definition at line 150 of file ResponseHeader.cpp. |
|
|
Returns the minor protocol-version of the HTTP response header.
Definition at line 160 of file ResponseHeader.cpp. |
|
|
Copies the contents of header into this ResponseHeader. Definition at line 74 of file ResponseHeader.cpp. |
|
||||||||||||
|
Reimplemented from Http::Header. Definition at line 167 of file ResponseHeader.cpp. |
|
|
Returns the reason phrase of the HTTP response header.
Definition at line 140 of file ResponseHeader.cpp. |
|
||||||||||||||||||||
|
Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer.
Definition at line 113 of file ResponseHeader.cpp. |
|
|
Returns the status code of the HTTP response header.
Definition at line 130 of file ResponseHeader.cpp. |
|
|
Reimplemented from Http::Header. Definition at line 198 of file ResponseHeader.cpp. |
|
|
Reimplemented from Http::Header. Definition at line 84 of file ResponseHeader.h. |