ResponsePolicyDecision

WebKitResponsePolicyDecision represents a policy decision for a resource response, whether from the network or the local system. A very common use case for these types of decision is deciding whether or not to download a particular resource or to load it normally.

Constructors

this
this(WebKitResponsePolicyDecision* webKitResponsePolicyDecision, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getRequest
URIRequest getRequest()

Return the #WebKitURIRequest associated with the response decision. Modifications to the returned object are <emphasis>not</emphasis> taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a response decision should be taken or not. To modify requests before they are sent over the network the #WebKitPage::send-request signal can be used instead.

getResponse
URIResponse getResponse()

Gets the value of the #WebKitResponsePolicyDecision:response property.

getResponsePolicyDecisionStruct
WebKitResponsePolicyDecision* getResponsePolicyDecisionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

isMimeTypeSupported
bool isMimeTypeSupported()

Gets whether the MIME type of the response can be displayed in the #WebKitWebView that triggered this policy decision request. See also webkit_web_view_can_show_mime_type().

Static functions

getType
GType getType()

Variables

webKitResponsePolicyDecision
WebKitResponsePolicyDecision* webKitResponsePolicyDecision;

the main Gtk struct

Inherited Members

From PolicyDecision

webKitPolicyDecision
WebKitPolicyDecision* webKitPolicyDecision;

the main Gtk struct

getPolicyDecisionStruct
WebKitPolicyDecision* getPolicyDecisionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
download
void download()

Spawn a download from this decision.

ignore
void ignore()

Ignore the action which triggered this decision. For instance, for a #WebKitResponsePolicyDecision, this would cancel the request.

use
void use()

Accept the action which triggered this decision.

useWithPolicies
void useWithPolicies(WebsitePolicies policies)

Accept the navigation action which triggered this decision, and continue with @policies affecting all subsequent loads of resources in the origin associated with the accepted navigation action.

Meta