It derives from <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.
This property contains the <WebKitURIRequest>
associated with this policy decision.
Its value is a <WebKitURIRequest>, or
#f.
It is read only.
This property contains the <WebKitURIResponse>
associated with this policy decision.
Its value is a <WebKitURIResponse>, or
#f.
It is read only.
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.
Passed: a
<WebKitResponsePolicyDecision>.
Returned: a <WebKitURIRequest>.
The URI request that is associated with this policy decision.
Gets the value of the response-policy-decision:response property.
Passed: a
<WebKitResponsePolicyDecision>.
Returned: a <WebKitURIResponse>.
The URI response that is associated with this policy decision.
Gets whether the request is the main frame main resource
Passed: a
<WebKitResponsePolicyDecision>.
Returned: a boolean.
#t if the request is the main frame main resouce or #f
otherwise
Gets whether the MIME type of the response can be displayed in the
<WebKitWebView>.
Gets whether the MIME type of the response can be displayed in the
<WebKitWebView> that triggered this policy
decision request. See also web-view:can-show-mime-type?.
Passed: a
<WebKitResponsePolicyDecision>.
Returned: a boolean.
#t if the MIME type of the response is supported or #f
otherwise