WebKit2.WebResource.prototype.get_data

function get_data(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for webkit_web_resource_get_data()
}
  

Asynchronously get the raw data for resource.

When the operation is finished, callback will be called. You can then call WebKit2.WebResource.prototype.get_data_finish to get the result of the operation.

cancellable

a Gio.Cancellable or null to ignore

callback

a Gio.AsyncReadyCallback to call when the request is satisfied