Q3HttpRequestHeader Class Reference [Qt3Support module]
The Q3HttpRequestHeader class contains request header information for HTTP. Далее...
#include <Q3HttpRequestHeader> This class is part of the Qt 3 support library. It is provided to keep old source code working. Мы настоятельно не рекомендуем использовать этот класс в новом коде. See Porting to Qt 4 for more information.
Note to Qt Desktop Light Edition users: This class is only available in the Qt Desktop Edition.
Inherits Q3HttpHeader.
Открытые функции
Подробное описание
The Q3HttpRequestHeader class contains request header information for HTTP.
This class is used in the Q3Http class to report the header information if the client requests something from the server.
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.
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().
This class is a Q3HttpHeader subclass so that class's functions, e.g. setValue(), value(), etc. are also available.
See also Q3HttpResponseHeader and Q3Http.
Описание функций-членов
Q3HttpRequestHeader::Q3HttpRequestHeader ()
Constructs an empty HTTP request header.
Q3HttpRequestHeader::Q3HttpRequestHeader ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )
Constructs a HTTP request header for the method method, the request-URI path and the protocol-version majorVer and minorVer.
Q3HttpRequestHeader::Q3HttpRequestHeader ( const Q3HttpRequestHeader & header )
Constructs a copy of header.
Q3HttpRequestHeader::Q3HttpRequestHeader ( const QString & str )
Constructs a HTTP request header from the string str. The str 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.
int Q3HttpRequestHeader::majorVersion () const [virtual]
Returns the major protocol-version of the HTTP request header.
Reimplemented from Q3HttpHeader.
See also minorVersion(), method(), path(), and setRequest().
QString Q3HttpRequestHeader::method () const
Returns the method of the HTTP request header.
See also path(), majorVersion(), minorVersion(), and setRequest().
int Q3HttpRequestHeader::minorVersion () const [virtual]
Returns the minor protocol-version of the HTTP request header.
Reimplemented from Q3HttpHeader.
See also majorVersion(), method(), path(), and setRequest().
QString Q3HttpRequestHeader::path () const
Returns the request-URI of the HTTP request header.
See also method(), majorVersion(), minorVersion(), and setRequest().
void Q3HttpRequestHeader::setRequest ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )
This function sets the request method to method, the request-URI to path and the protocol-version to majorVer and minorVer.
See also method(), path(), majorVersion(), and minorVersion().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) |
Торговые марки |
Qt 4.5.3 |
|