webkit.urischeme_request

Module for [URISchemeRequest] class

Types 3

Represents a URI scheme request.

If you register a particular URI scheme in a #WebKitWebContext, using [webkit.web_context.WebContext.registerUriScheme], 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.urischeme_request.URISchemeRequest.finish].

Methods
GType _gType() @property
URISchemeRequest self()Returns `this`, for use in `with` statements.
URISchemeRequestGidBuilder builder()Get builder for [webkit.urischeme_request.URISchemeRequest] Returns: New builder object
void finish(gio.input_stream.InputStream stream, long streamLength, string contentType = null)Finish a #WebKitURISchemeRequest by setting the contents of the request and its mime type.
void finishError(glib.error.ErrorWrap error)Finish a #WebKitURISchemeRequest with a #GError.
void finishWithResponse(webkit.urischeme_response.URISchemeResponse response)Finish a #WebKitURISchemeRequest by returning a #WebKitURISchemeResponse
gio.input_stream.InputStream getHttpBody()Get the request body. Returns: (nullable): the body of the request.
soup.message_headers.MessageHeaders getHttpHeaders()Get the #SoupMessageHeaders of the request. Returns: the #SoupMessageHeaders of the request.
string getHttpMethod()Get the HTTP method of the request. Returns: the HTTP method of the request
string getPath()Get the URI path of request. Returns: the URI path of request
string getScheme()Get the URI scheme of request. Returns: the URI scheme of request
string getUri()Get the URI of request. Returns: the full URI of request
webkit.web_view.WebView getWebView()Get the #WebKitWebView that initiated the request. Returns: the #WebKitWebView that initiated request.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.urischeme_request.URISchemeRequest]