Top |
WebKitResponsePolicyDecisionWebKitResponsePolicyDecision — 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.
WebKitURIRequest *
webkit_response_policy_decision_get_request
(WebKitResponsePolicyDecision *decision
);
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 “send-request” signal can be used instead.
WebKitURIResponse *
webkit_response_policy_decision_get_response
(WebKitResponsePolicyDecision *decision
);
Gets the value of the “response” property.
gboolean
webkit_response_policy_decision_is_mime_type_supported
(WebKitResponsePolicyDecision *decision
);
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()
.
Since: 2.4
“request”
property“request” WebKitURIRequest *
This property contains the WebKitURIRequest associated with this policy decision.
Flags: Read
“response”
property“response” WebKitURIResponse *
This property contains the WebKitURIResponse associated with this policy decision.
Flags: Read