Top |
const gchar * | webkit_uri_scheme_request_get_scheme () |
const gchar * | webkit_uri_scheme_request_get_uri () |
const gchar * | webkit_uri_scheme_request_get_path () |
WebKitWebView * | webkit_uri_scheme_request_get_web_view () |
void | webkit_uri_scheme_request_finish () |
void | webkit_uri_scheme_request_finish_error () |
If you register a particular URI scheme in a WebKitWebContext,
using webkit_web_context_register_uri_scheme()
, you have to provide
a WebKitURISchemeRequestCallback. 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 the WebKitWebView that initiated the
request, and also finish the request with
webkit_uri_scheme_request_finish()
.
const gchar *
webkit_uri_scheme_request_get_scheme (WebKitURISchemeRequest *request
);
Get the URI scheme of request
const gchar *
webkit_uri_scheme_request_get_uri (WebKitURISchemeRequest *request
);
Get the URI of request
const gchar *
webkit_uri_scheme_request_get_path (WebKitURISchemeRequest *request
);
Get the URI path of request
WebKitWebView *
webkit_uri_scheme_request_get_web_view
(WebKitURISchemeRequest *request
);
Get the WebKitWebView that initiated the request.
void webkit_uri_scheme_request_finish (WebKitURISchemeRequest *request
,GInputStream *stream
,gint64 stream_length
,const gchar *mime_type
);
Finish a WebKitURISchemeRequest by setting the contents of the request and its mime type.
request |
||
stream |
a GInputStream to read the contents of the request |
|
stream_length |
the length of the stream or -1 if not known |
|
mime_type |
the content type of the stream or |
[allow-none] |
void webkit_uri_scheme_request_finish_error (WebKitURISchemeRequest *request
,GError *error
);
Finish a WebKitURISchemeRequest with a GError.
Since: 2.2