1.30 <WebKitResponsePolicyDecision>

Class: <WebKitResponsePolicyDecision>

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.

Properties

Property: response-policy-decision:request self

This property contains the <WebKitURIRequest> associated with this policy decision.

Its value is a <WebKitURIRequest>, or #f.

It is read only.

Property: response-policy-decision:response self

This property contains the <WebKitURIResponse> associated with this policy decision.

Its value is a <WebKitURIResponse>, or #f.

It is read only.

Procedures

Method: response-policy-decision:get-request self ⇒ %return
Method: get-request self ⇒ %return

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.

self

Passed: a <WebKitResponsePolicyDecision>.

a <WebKitResponsePolicyDecision>

%return

Returned: a <WebKitURIRequest>.

The URI request that is associated with this policy decision.

Method: response-policy-decision:get-response self ⇒ %return
Method: get-response self ⇒ %return

Gets the value of the response-policy-decision:response property.

self

Passed: a <WebKitResponsePolicyDecision>.

a <WebKitResponsePolicyDecision>

%return

Returned: a <WebKitURIResponse>.

The URI response that is associated with this policy decision.

Method: response-policy-decision:is-main-frame-main-resource? self ⇒ %return
Method: is-main-frame-main-resource? self ⇒ %return

Gets whether the request is the main frame main resource

self

Passed: a <WebKitResponsePolicyDecision>.

a <WebKitResponsePolicyDecision>

%return

Returned: a boolean.

#t if the request is the main frame main resouce or #f otherwise

Method: response-policy-decision:is-mime-type-supported? self ⇒ %return
Method: is-mime-type-supported? self ⇒ %return

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

self

Passed: a <WebKitResponsePolicyDecision>.

a <WebKitResponsePolicyDecision>

%return

Returned: a boolean.

#t if the MIME type of the response is supported or #f otherwise