The QHttpRequestHeader class contains request header information for HTTP.
.PP
This class is used in the QHttp class to report the header information if the client requests something from the server.
.PP
HTTP requests have a method which describes the request's action. The most common requests are "GET" and "POST". In addition to the request method the header also includes a request-URI to specify the location for the method to use.
.PP
The method, request-URI and protocol-version can be set using a constructor or later using setRequest(). The values can be obtained using method(), path(), majorVersion() and minorVersion().
.PP
This class is a QHttpHeader subclass so that class's functions, e.g. setValue(), value(), etc. are also available.
.PP
See also QHttpResponseHeader, QHttp, and Input/Output and Networking.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QHttpRequestHeader::QHttpRequestHeader ()"
Constructs an empty HTTP request header.
.SH "QHttpRequestHeader::QHttpRequestHeader ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )"
Constructs a HTTP request header for the method \fImethod\fR, the request-URI \fIpath\fR and the protocol-version \fImajorVer\fR and \fIminorVer\fR.
Constructs a HTTP request header from the string \fIstr\fR. The \fIstr\fR should consist of one or more "\\r\\n" delimited lines; the first line should be the request-line (format: method, space, request-URI, space HTTP-version); each of the remaining lines should have the format key, colon, space, value.
Sets the value of the entry with the \fIkey\fR to \fIvalue\fR.
.PP
If no entry with \fIkey\fR exists, a new entry with the given \fIkey\fR and \fIvalue\fR is created. If an entry with the \fIkey\fR already exists, its value is discarded and replaced with the given \fIvalue\fR.