WebKitWebProcessExtension.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:
Class Details¶
- class WebKitWebProcessExtension.URIResponse(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents an URI response.
A
WebKitWebProcessExtension.URIResponsecontains 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
WebKitWebProcessExtension.URIResponse.It can be 0 if the server provided an incorrect or missing Content-Length.
- get_http_headers()¶
- Returns:
a
Soup.MessageHeaderswith the HTTP headers of self orNoneif self is not an HTTP response.- Return type:
Get the HTTP headers of a
WebKitWebProcessExtension.URIResponseas 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
WebKitWebProcessExtension.URIResponse.Get the status code of the
WebKitWebProcessExtension.URIResponseas 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¶
- WebKitWebProcessExtension.URIResponse.props.content_length¶
-
The expected content length of the response.
- WebKitWebProcessExtension.URIResponse.props.http_headers¶
- Name:
http-headers- Type:
- Default Value:
- Flags:
The HTTP headers of the response, or
Noneif the response is not an HTTP response.New in version 2.6.
- WebKitWebProcessExtension.URIResponse.props.mime_type¶
-
The MIME type of the response.
- WebKitWebProcessExtension.URIResponse.props.status_code¶
-
The status code of the response as returned by the server.
- WebKitWebProcessExtension.URIResponse.props.suggested_filename¶
-
The suggested filename for the URI response.