Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QHttpRequestHeader class contains request header information for HTTP. More...
Public Member Functions | |
QHttpRequestHeader () | |
| |
QHttpRequestHeader (QHttpRequestHeader header) | |
| |
QHttpRequestHeader (string str) | |
| |
QHttpRequestHeader (string method, string path, int majorVer=1, int minorVer=1) | |
| |
override void | CreateProxy () |
override int | MajorVersion () |
| |
new string | Method () |
| |
override int | MinorVersion () |
| |
new string | Path () |
| |
new void | SetRequest (string method, string path, int majorVer=1, int minorVer=1) |
| |
override string | ToString () |
| |
new void | Dispose () |
Public Member Functions inherited from QtNetwork.QHttpHeader | |
QHttpHeader () | |
| |
QHttpHeader (QHttpHeader header) | |
| |
QHttpHeader (string str) | |
| |
new void | AddValue (string key, string value) |
| |
new System.Collections.Generic.List < string > | AllValues (string key) |
| |
new uint | ContentLength () |
| |
new bool | HasContentLength () |
| |
new bool | HasContentType () |
| |
new bool | HasKey (string key) |
| |
new bool | IsValid () |
| |
new System.Collections.Generic.List < string > | Keys () |
| |
new void | RemoveAllValues (string key) |
| |
new void | RemoveValue (string key) |
| |
new void | SetContentLength (int len) |
| |
new void | SetValue (string key, string value) |
| |
override string | ToString () |
| |
new string | Value (string key) |
| |
new void | Dispose () |
Protected Member Functions | |
QHttpRequestHeader (System.Type dummy) | |
override bool | ParseLine (string line, int number) |
Protected Member Functions inherited from QtNetwork.QHttpHeader | |
QHttpHeader (System.Type dummy) | |
new bool | Parse (string str) |
new void | SetValid (bool arg1) |
Additional Inherited Members | |
Protected Attributes inherited from QtNetwork.QHttpHeader | |
SmokeInvocation | interceptor |
Properties inherited from QtNetwork.QHttpHeader | |
new string | ContentType [get, set] |
| |
virtual System.IntPtr | SmokeObject [get, set] |
The QHttpRequestHeader class contains request header information for HTTP.
This class is used in the QHttp 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().
Note that the request-URI must be in the format expected by the HTTP server. That is, all reserved characters must be encoded in HH (where HH are two hexadecimal digits). See QUrl::toPercentEncoding() for more information.
Important inherited functions: setValue() and value().
See also QHttpResponseHeader and QHttp.
|
protected |
QtNetwork.QHttpRequestHeader.QHttpRequestHeader | ( | ) |
Constructs an empty HTTP request header.
QtNetwork.QHttpRequestHeader.QHttpRequestHeader | ( | QHttpRequestHeader | header | ) |
Constructs a copy of header.
QtNetwork.QHttpRequestHeader.QHttpRequestHeader | ( | string | 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.
QtNetwork.QHttpRequestHeader.QHttpRequestHeader | ( | string | method, |
string | 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. The path argument must be properly encoded for an HTTP request.
|
virtual |
Reimplemented from QtNetwork.QHttpHeader.
new void QtNetwork.QHttpRequestHeader.Dispose | ( | ) |
|
virtual |
Reimplemented from QHttpHeader::majorVersion().
Returns the major protocol-version of the HTTP request header.
See also minorVersion(), method(), path(), and setRequest().
Implements QtNetwork.QHttpHeader.
new string QtNetwork.QHttpRequestHeader.Method | ( | ) |
Returns the method of the HTTP request header.
See also path(), majorVersion(), minorVersion(), and setRequest().
|
virtual |
Reimplemented from QHttpHeader::minorVersion().
Returns the minor protocol-version of the HTTP request header.
See also majorVersion(), method(), path(), and setRequest().
Implements QtNetwork.QHttpHeader.
|
protectedvirtual |
Reimplemented from QtNetwork.QHttpHeader.
new string QtNetwork.QHttpRequestHeader.Path | ( | ) |
Returns the request-URI of the HTTP request header.
See also method(), majorVersion(), minorVersion(), and setRequest().
new void QtNetwork.QHttpRequestHeader.SetRequest | ( | string | method, |
string | 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. The path argument must be properly encoded for an HTTP request.
See also method(), path(), majorVersion(), and minorVersion().
override string QtNetwork.QHttpRequestHeader.ToString | ( | ) |
Reimplemented from QHttpHeader::toString().