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.WebViewthat initiated the request, and also finish the request withWebKit2.URISchemeRequest.finish().- finish(stream, stream_length, content_type)¶
- Parameters:
stream (
Gio.InputStream) – aGio.InputStreamto read the contents of the requeststream_length (
int) – the length of the stream or -1 if not knowncontent_type (
strorNone) – the content type of the stream orNoneif not known
Finish a
WebKit2.URISchemeRequestby setting the contents of the request and its mime type.
- finish_error(error)¶
- Parameters:
error (
GLib.Error) – aGLib.Errorthat will be passed to theWebKit2.WebView
Finish a
WebKit2.URISchemeRequestwith aGLib.Error.New in version 2.2.
- finish_with_response(response)¶
- Parameters:
response (
WebKit2.URISchemeResponse) – aWebKit2.URISchemeResponse
Finish a
WebKit2.URISchemeRequestby returning aWebKit2.URISchemeResponseNew 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.MessageHeadersof the self.- Return type:
Get the
Soup.MessageHeadersof 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.WebViewthat initiated self.- Return type:
Get the
WebKit2.WebViewthat initiated the request.