WebKitResponsePolicyDecision

WebKitResponsePolicyDecision — A policy decision for resource responses

Synopsis

struct              WebKitResponsePolicyDecision;
WebKitURIRequest *  webkit_response_policy_decision_get_request
                                                        (WebKitResponsePolicyDecision *decision);
WebKitURIResponse * webkit_response_policy_decision_get_response
                                                        (WebKitResponsePolicyDecision *decision);
gboolean            webkit_response_policy_decision_is_mime_type_supported
                                                        (WebKitResponsePolicyDecision *decision);

Object Hierarchy

  GObject
   +----WebKitPolicyDecision
         +----WebKitResponsePolicyDecision

Properties

  "request"                  WebKitURIRequest*     : Read
  "response"                 WebKitURIResponse*    : Read

Description

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

Details

struct WebKitResponsePolicyDecision

struct WebKitResponsePolicyDecision;


webkit_response_policy_decision_get_request ()

WebKitURIRequest *  webkit_response_policy_decision_get_request
                                                        (WebKitResponsePolicyDecision *decision);

Gets the value of the "request" property.

decision :

a WebKitResponsePolicyDecision

Returns :

The URI request that is associated with this policy decision. [transfer none]

webkit_response_policy_decision_get_response ()

WebKitURIResponse * webkit_response_policy_decision_get_response
                                                        (WebKitResponsePolicyDecision *decision);

Gets the value of the "response" property.

decision :

a WebKitResponsePolicyDecision

Returns :

The URI response that is associated with this policy decision. [transfer none]

webkit_response_policy_decision_is_mime_type_supported ()

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

decision :

a WebKitResponsePolicyDecision

Returns :

TRUE if the MIME type of the response is supported or FALSE otherwise

Since 2.4

Property Details

The "request" property

  "request"                  WebKitURIRequest*     : Read

This property contains the WebKitURIRequest associated with this policy decision.


The "response" property

  "response"                 WebKitURIResponse*    : Read

This property contains the WebKitURIResponse associated with this policy decision.

See Also

WebKitPolicyDecision, WebKitWebView