⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qhttprequestheader.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
字号:
'\" t.TH QHttpRequestHeader 3qt "9 December 2002" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQHttpRequestHeader \- Request header information for HTTP.SH SYNOPSIS\fC#include <qhttp.h>\fR.PPInherits 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 DESCRIPTIONThe QHttpRequestHeader class contains request header information for HTTP..PPThis class is used in the QHttp class to report the header information if the client requests something from the server..PPHTTP 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..PPThe 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()..PPThis class is a QHttpHeader subclass so that class's functions, e.g. setValue(), value(), etc. are also available..PPSee 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..PPSee also minorVersion(), method(), path(), and setRequest()..PPReimplemented from QHttpHeader..SH "QString QHttpRequestHeader::method () const"Returns the method of the HTTP request header..PPSee also path(), majorVersion(), minorVersion(), and setRequest()..SH "int QHttpRequestHeader::minorVersion () const\fC [virtual]\fR"Returns the minor protocol-version of the HTTP request header..PPSee also majorVersion(), method(), path(), and setRequest()..PPReimplemented from QHttpHeader..SH "QString QHttpRequestHeader::path () const"Returns the request-URI of the HTTP request header..PPSee 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..PPSee 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..PPIf 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..PPSee also value(), hasKey(), and removeValue()..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..PPSee 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 COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf 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..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qhttprequestheader.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -