WebKit2.URISchemeRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.URISchemeRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a URI scheme request.
If you register a particular URI scheme in a
WebKit2.WebContext
, usingWebKit2.WebContext.register_uri_scheme
(), you have to provide aWebKit2.URISchemeRequestCallback
. After that, when a URI request is made with that particular scheme, your callback will be called. There you will be able to access properties such as the scheme, the URI and path, and theWebKit2.WebView
that initiated the request, and also finish the request withWebKit2.URISchemeRequest.finish
().- finish(stream, stream_length, content_type)¶
- Parameters:
stream (
Gio.InputStream
) – aGio.InputStream
to read the contents of the requeststream_length (
int
) – the length of the stream or -1 if not knowncontent_type (
str
orNone
) – the content type of the stream orNone
if not known
Finish a
WebKit2.URISchemeRequest
by setting the contents of the request and its mime type.
- finish_error(error)¶
- Parameters:
error (
GLib.Error
) – aGLib.Error
that will be passed to theWebKit2.WebView
Finish a
WebKit2.URISchemeRequest
with aGLib.Error
.New in version 2.2.
- finish_with_response(response)¶
- Parameters:
response (
WebKit2.URISchemeResponse
) – aWebKit2.URISchemeResponse
Finish a
WebKit2.URISchemeRequest
by returning aWebKit2.URISchemeResponse
New in version 2.36.
- get_http_body()¶
- Returns:
(nullable): the body of the self.
- Return type:
Get the request body.
New in version 2.40.
- get_http_headers()¶
- Returns:
the
Soup.MessageHeaders
of the self.- Return type:
Get the
Soup.MessageHeaders
of the request.New in version 2.36.
- get_http_method()¶
- Returns:
the HTTP method of the self
- Return type:
Get the HTTP method of the self.
New in version 2.36.
- get_web_view()¶
- Returns:
the
WebKit2.WebView
that initiated self.- Return type:
Get the
WebKit2.WebView
that initiated the request.