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
URISchemeRequestGidBuilder builder() static nothrowGet builder for [webkit.urischeme_request.URISchemeRequest] Returns: New builder objectvoid 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 #WebKitURISchemeResponsegio.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 requestwebkit.web_view.WebView getWebView() nothrowGet the #WebKitWebView that initiated the request. Returns: the #WebKitWebView that initiated request.Fluent builder implementation template for webkit.urischeme_request.URISchemeRequest
Fluent builder for webkit.urischeme_request.URISchemeRequest
Methods