1QHttpRequestHeader(3qt)                                QHttpRequestHeader(3qt)
2
3
4

NAME

6       QHttpRequestHeader - Request header information for HTTP
7

SYNOPSIS

9       #include <qhttp.h>
10
11       Inherits QHttpHeader.
12
13   Public Members
14       QHttpRequestHeader ()
15       QHttpRequestHeader ( const QString & method, const QString & path, int
16           majorVer = 1, int minorVer = 1 )
17       QHttpRequestHeader ( const QHttpRequestHeader & header )
18       QHttpRequestHeader ( const QString & str )
19       void setRequest ( const QString & method, const QString & path, int
20           majorVer = 1, int minorVer = 1 )
21       QString method () const
22       QString path () const
23       virtual int majorVersion () const
24       virtual int minorVersion () const
25
26   Important Inherited Members
27       QString value ( const QString & key ) const
28       void setValue ( const QString & key, const QString & value )
29

DESCRIPTION

31       The QHttpRequestHeader class contains request header information for
32       HTTP.
33
34       This class is used in the QHttp class to report the header information
35       if the client requests something from the server.
36
37       HTTP requests have a method which describes the request's action. The
38       most common requests are "GET" and "POST". In addition to the request
39       method the header also includes a request-URI to specify the location
40       for the method to use.
41
42       The method, request-URI and protocol-version can be set using a
43       constructor or later using setRequest(). The values can be obtained
44       using method(), path(), majorVersion() and minorVersion().
45
46       This class is a QHttpHeader subclass so that class's functions, e.g.
47       setValue(), value(), etc. are also available.
48
49       See also QHttpResponseHeader, QHttp, and Input/Output and Networking.
50

MEMBER FUNCTION DOCUMENTATION

QHttpRequestHeader::QHttpRequestHeader ()

53       Constructs an empty HTTP request header.
54

QHttpRequestHeader::QHttpRequestHeader ( const QString & method, const QString

56       & path, int majorVer = 1, int minorVer = 1 )
57       Constructs a HTTP request header for the method method, the request-URI
58       path and the protocol-version majorVer and minorVer.
59

QHttpRequestHeader::QHttpRequestHeader ( const QHttpRequestHeader & header )

61       Constructs a copy of header.
62

QHttpRequestHeader::QHttpRequestHeader ( const QString & str )

64       Constructs a HTTP request header from the string str. The str should
65       consist of one or more "\r\n" delimited lines; the first line should be
66       the request-line (format: method, space, request-URI, space HTTP-
67       version); each of the remaining lines should have the format key,
68       colon, space, value.
69

int QHttpRequestHeader::majorVersion () const [virtual]

71       Returns the major protocol-version of the HTTP request header.
72
73       See also minorVersion(), method(), path(), and setRequest().
74
75       Reimplemented from QHttpHeader.
76

QString QHttpRequestHeader::method () const

78       Returns the method of the HTTP request header.
79
80       See also path(), majorVersion(), minorVersion(), and setRequest().
81

int QHttpRequestHeader::minorVersion () const [virtual]

83       Returns the minor protocol-version of the HTTP request header.
84
85       See also majorVersion(), method(), path(), and setRequest().
86
87       Reimplemented from QHttpHeader.
88

QString QHttpRequestHeader::path () const

90       Returns the request-URI of the HTTP request header.
91
92       See also method(), majorVersion(), minorVersion(), and setRequest().
93

void QHttpRequestHeader::setRequest ( const QString & method, const QString &

95       path, int majorVer = 1, int minorVer = 1 )
96       This function sets the request method to method, the request-URI to
97       path and the protocol-version to majorVer and minorVer.
98
99       See also method(), path(), majorVersion(), and minorVersion().
100

void QHttpHeader::setValue ( const QString & key, const QString & value )

102       Sets the value of the entry with the key to value.
103
104       If no entry with key exists, a new entry with the given key and value
105       is created. If an entry with the key already exists, its value is
106       discarded and replaced with the given value.
107
108       See also value(), hasKey(), and removeValue().
109
110       Example: network/archivesearch/archivedialog.ui.h.
111

QString QHttpHeader::value ( const QString & key ) const

113       Returns the value for the entry with the given key. If no entry has
114       this key, an empty string is returned.
115
116       See also setValue(), removeValue(), hasKey(), and keys().
117
118

SEE ALSO

120       http://doc.trolltech.com/qhttprequestheader.html
121       http://www.trolltech.com/faq/tech.html
122
124       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
125       license file included in the distribution for a complete license
126       statement.
127

AUTHOR

129       Generated automatically from the source code.
130

BUGS

132       If you find a bug in Qt, please report it as described in
133       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
134       help you. Thank you.
135
136       The definitive Qt documentation is provided in HTML format; it is
137       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
138       web browser. This man page is provided as a convenience for those users
139       who prefer man pages, although this format is not officially supported
140       by Trolltech.
141
142       If you find errors in this manual page, please report them to qt-
143       bugs@trolltech.com.  Please include the name of the manual page
144       (qhttprequestheader.3qt) and the Qt version (3.3.8).
145
146
147
148Trolltech AS                    2 February 2007        QHttpRequestHeader(3qt)
Impressum