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
WebResource self()Returns `this`, for use in `with` statements.WebResourceGidBuilder builder()Get builder for [webkit.web_resource.WebResource] Returns: New builder objectwebkit.uriresponse.URIResponse response() @propertyGet `response` property. Returns: The #WebKitURIResponse associated with this resource.string uri() @propertyGet `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)Asynchronously 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()Retrieves the #WebKitURIResponse of the resource load operation.string getUri()Returns the current active URI of resource.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)Connect 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)Connect 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)Connect 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)Connect to `SentRequest` signal.Fluent builder for [webkit.web_resource.WebResource]
Methods