WebKit2.URIRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.URIRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a URI request.
A
WebKit2.URIRequest
can be created with a URI using theWebKit2.URIRequest.new
() method, and you can get the URI of an existing request with theWebKit2.URIRequest.get_uri
() one.- classmethod new(uri)¶
- Parameters:
uri (
str
) – an URI- Returns:
a new
WebKit2.URIRequest
- Return type:
Creates a new
WebKit2.URIRequest
for the given URI.
- get_http_headers()¶
- Returns:
a
Soup.MessageHeaders
with the HTTP headers of self orNone
if self is not an HTTP request.- Return type:
Get the HTTP headers of a
WebKit2.URIRequest
as aSoup.MessageHeaders
.
- get_http_method()¶
- Returns:
the HTTP method of the
WebKit2.URIRequest
orNone
if self is not an HTTP request.- Return type:
Get the HTTP method of the
WebKit2.URIRequest
.New in version 2.12.