URISchemeRequest

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().

Constructors

this
this(WebKitURISchemeRequest* webKitURISchemeRequest, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

finish
void finish(InputStream stream, long streamLength, string contentType)

Finish a #WebKitURISchemeRequest by setting the contents of the request and its mime type.

finishError
void finishError(ErrorG error)

Finish a #WebKitURISchemeRequest with a #GError.

getPath
string getPath()

Get the URI path of @request

getScheme
string getScheme()

Get the URI scheme of @request

getStruct
void* getStruct()

the main Gtk struct as a void*

getURISchemeRequestStruct
WebKitURISchemeRequest* getURISchemeRequestStruct(bool transferOwnership)

Get the main Gtk struct

getUri
string getUri()

Get the URI of @request

getWebView
WebView getWebView()

Get the #WebKitWebView that initiated the request.

Static functions

getType
GType getType()

Variables

webKitURISchemeRequest
WebKitURISchemeRequest* webKitURISchemeRequest;

the main Gtk struct

Meta