webkit.web_resource
Module for [WebResource] class
Types 3
Represents a resource at the end of a URI.
A #WebKitWebResource encapsulates content for each resource at the end of a particular URI. For example, one #WebKitWebResource will be created for each separate image and stylesheet when a page is loaded.
You can access the response and the URI for a given #WebKitWebResource, using webkit.web_resource.WebResource.getUri and webkit.web_resource.WebResource.getResponse, as well as the raw data, using webkit.web_resource.WebResource.getData.
Methods
WebResourceGidBuilder builder() static nothrowGet builder for [webkit.web_resource.WebResource] Returns: New builder objectwebkit.uriresponse.URIResponse response() @property nothrowGet `response` property. Returns: The #WebKitURIResponse associated with this resource.string uri() @property nothrowGet `uri` property. Returns: The current active URI of the #WebKitWebResource. See [webkit.web_resource.WebResource.getUri] for more details.void getData(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously get the raw data for resource.ubyte[] getDataFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_resource.WebResource.getData].webkit.uriresponse.URIResponse getResponse() nothrowRetrieves the #WebKitURIResponse of the resource load operation.gulong connectFailed(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == glib.error.ErrorWrap)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_resource.WebResource)))
&& Parameters!T.length < 3) nothrowConnect to `Failed` signal.gulong connectFailedWithTlsErrors(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.tls_certificate.TlsCertificate)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gio.types.TlsCertificateFlags)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_resource.WebResource)))
&& Parameters!T.length < 4) nothrowConnect to `FailedWithTlsErrors` signal.gulong connectFinished(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_resource.WebResource)))
&& Parameters!T.length < 2) nothrowConnect to `Finished` signal.gulong connectSentRequest(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.urirequest.URIRequest)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.uriresponse.URIResponse)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_resource.WebResource)))
&& Parameters!T.length < 4) nothrowConnect to `SentRequest` signal.Fluent builder implementation template for webkit.web_resource.WebResource
Fluent builder for webkit.web_resource.WebResource
Methods