WebKit2.URIResponse¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.URIResponse(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents an URI response.
A
WebKit2.URIResponse
contains information such as the URI, the status code, the content length, the mime type, the HTTP status or the suggested filename.- get_content_length()¶
- Returns:
the expected content length of self.
- Return type:
Get the expected content length of the
WebKit2.URIResponse
.It can be 0 if the server provided an incorrect or missing Content-Length.
- get_http_headers()¶
- Returns:
a
Soup.MessageHeaders
with the HTTP headers of self orNone
if self is not an HTTP response.- Return type:
Get the HTTP headers of a
WebKit2.URIResponse
as aSoup.MessageHeaders
.New in version 2.6.
- get_mime_type()¶
- Returns:
MIME type, as a string.
- Return type:
Gets the MIME type of the response.
- get_status_code()¶
- Returns:
the status code of self
- Return type:
Get the status code of the
WebKit2.URIResponse
.Get the status code of the
WebKit2.URIResponse
as returned by the server. It will normally be a #SoupKnownStatusCode, for exampleSoup.Status.OK
, though the server can respond with any unsigned integer.
Property Details¶
- WebKit2.URIResponse.props.content_length¶
-
The expected content length of the response.
- WebKit2.URIResponse.props.http_headers¶
- Name:
http-headers
- Type:
- Default Value:
- Flags:
The HTTP headers of the response, or
None
if the response is not an HTTP response.New in version 2.6.
- WebKit2.URIResponse.props.mime_type¶
-
The MIME type of the response.
- WebKit2.URIResponse.props.status_code¶
-
The status code of the response as returned by the server.
- WebKit2.URIResponse.props.suggested_filename¶
-
The suggested filename for the URI response.