Class

WPEWebKitResponsePolicyDecision

Description [src]

class WPEWebKit.ResponsePolicyDecision : WPEWebKit.PolicyDecision {
  parent: WebKitPolicyDecision
}

A policy decision for resource responses.

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.

Hierarchy

hierarchy this WebKitResponsePolicyDecision ancestor_0 WebKitPolicyDecision ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Instance methods

webkit_response_policy_decision_get_request

Return the WebKitURIRequest associated with the response decision. Modifications to the returned object are not 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.

webkit_response_policy_decision_get_response

Gets the value of the WebKitResponsePolicyDecision:response property.

webkit_response_policy_decision_is_mime_type_supported

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().

Available since: 2.4

Methods inherited from WebKitPolicyDecision (4)
webkit_policy_decision_download

Spawn a download from this decision.

webkit_policy_decision_ignore

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

webkit_policy_decision_use

Accept the action which triggered this decision.

webkit_policy_decision_use_with_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.

Available since: 2.30

Methods inherited from GObject (42)

Please see GObject for a full list of methods.

Properties

WPEWebKit.ResponsePolicyDecision:request

This property contains the WebKitURIRequest associated with this policy decision.

WPEWebKit.ResponsePolicyDecision:response

This property contains the WebKitURIResponse associated with this policy decision.

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WPEWebKitResponsePolicyDecisionClass {
  WebKitPolicyDecisionClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}
Class members
parent_class
WebKitPolicyDecisionClass
  No description available.
_webkit_reserved0
void (* _webkit_reserved0) (
void
  )
  No description available.
_webkit_reserved1
void (* _webkit_reserved1) (
void
  )
  No description available.
_webkit_reserved2
void (* _webkit_reserved2) (
void
  )
  No description available.
_webkit_reserved3
void (* _webkit_reserved3) (
void
  )
  No description available.