1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
'\" t
.TH QHttpRequestHeader 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QHttpRequestHeader \- Request header information for HTTP
.SH SYNOPSIS
\fC#include <ntqhttp.h>\fR
.PP
Inherits QHttpHeader.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQHttpRequestHeader\fR ()"
.br
.ti -1c
.BI "\fBQHttpRequestHeader\fR ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )"
.br
.ti -1c
.BI "\fBQHttpRequestHeader\fR ( const QHttpRequestHeader & header )"
.br
.ti -1c
.BI "\fBQHttpRequestHeader\fR ( const QString & str )"
.br
.ti -1c
.BI "void \fBsetRequest\fR ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )"
.br
.ti -1c
.BI "QString \fBmethod\fR () const"
.br
.ti -1c
.BI "QString \fBpath\fR () const"
.br
.ti -1c
.BI "virtual int \fBmajorVersion\fR () const"
.br
.ti -1c
.BI "virtual int \fBminorVersion\fR () const"
.br
.in -1c
.SS "Important Inherited Members"
.in +1c
.ti -1c
.BI "QString \fBvalue\fR ( const QString & key ) const"
.br
.ti -1c
.BI "void \fBsetValue\fR ( const QString & key, const QString & value )"
.br
.in -1c
.SH DESCRIPTION
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.
.SH "QHttpRequestHeader::QHttpRequestHeader ( const QHttpRequestHeader & header )"
Constructs a copy of \fIheader\fR.
.SH "QHttpRequestHeader::QHttpRequestHeader ( const QString & str )"
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.
.SH "int QHttpRequestHeader::majorVersion () const\fC [virtual]\fR"
Returns the major protocol-version of the HTTP request header.
.PP
See also minorVersion(), method(), path(), and setRequest().
.PP
Reimplemented from QHttpHeader.
.SH "QString QHttpRequestHeader::method () const"
Returns the method of the HTTP request header.
.PP
See also path(), majorVersion(), minorVersion(), and setRequest().
.SH "int QHttpRequestHeader::minorVersion () const\fC [virtual]\fR"
Returns the minor protocol-version of the HTTP request header.
.PP
See also majorVersion(), method(), path(), and setRequest().
.PP
Reimplemented from QHttpHeader.
.SH "QString QHttpRequestHeader::path () const"
Returns the request-URI of the HTTP request header.
.PP
See also method(), majorVersion(), minorVersion(), and setRequest().
.SH "void QHttpRequestHeader::setRequest ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )"
This function sets the request method to \fImethod\fR, the request-URI to \fIpath\fR and the protocol-version to \fImajorVer\fR and \fIminorVer\fR.
.PP
See also method(), path(), majorVersion(), and minorVersion().
.SH "void QHttpHeader::setValue ( const QString & key, const QString & 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.
.PP
See also value(), hasKey(), and removeValue().
.PP
Example: network/archivesearch/archivedialog.ui.h.
.SH "QString QHttpHeader::value ( const QString & key ) const"
Returns the value for the entry with the given \fIkey\fR. If no entry has this \fIkey\fR, an empty string is returned.
.PP
See also setValue(), removeValue(), hasKey(), and keys().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qhttprequestheader.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive Qt documentation is provided in HTML format; it is
located at $QTDIR/doc/html and can be read using Qt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR [email protected] .
Please include the name of the manual page (qhttprequestheader.3qt) and the Qt
version (3.3.8).
|