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