WebKit.URISchemeRequest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class WebKit.URISchemeRequest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a URI scheme request.
If you register a particular URI scheme in a
WebKit.WebContext
, usingWebKit.WebContext.register_uri_scheme
(), you have to provide aWebKit.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 theWebKit.WebView
that initiated the request, and also finish the request withWebKit.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
WebKit.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 theWebKit.WebView
Finish a
WebKit.URISchemeRequest
with aGLib.Error
.New in version 2.2.
- finish_with_response(response)¶
- Parameters:
response (
WebKit.URISchemeResponse
) – aWebKit.URISchemeResponse
Finish a
WebKit.URISchemeRequest
by returning aWebKit.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
WebKit.WebView
that initiated self.- Return type:
Get the
WebKit.WebView
that initiated the request.