WebKit2.ResponsePolicyDecision¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class WebKit2.ResponsePolicyDecision(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A policy decision for resource responses.
WebKit2.ResponsePolicyDecisionrepresents 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.- get_request()¶
- Returns:
The URI request that is associated with this policy decision.
- Return type:
Return the
WebKit2.URIRequestassociated 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.
- get_response()¶
- Returns:
The URI response that is associated with this policy decision.
- Return type:
Gets the value of the
WebKit2.ResponsePolicyDecision:responseproperty.
- is_main_frame_main_resource()¶
-
Gets whether the request is the main frame main resource
New in version 2.40.
- is_mime_type_supported()¶
-
Gets whether the MIME type of the response can be displayed in the
WebKit2.WebView.Gets whether the MIME type of the response can be displayed in the
WebKit2.WebViewthat triggered this policy decision request. See alsoWebKit2.WebView.can_show_mime_type().New in version 2.4.
Property Details¶
- WebKit2.ResponsePolicyDecision.props.request¶
- Name:
request- Type:
- Default Value:
- Flags:
This property contains the
WebKit2.URIRequestassociated with this policy decision.
- WebKit2.ResponsePolicyDecision.props.response¶
- Name:
response- Type:
- Default Value:
- Flags:
This property contains the
WebKit2.URIResponseassociated with this policy decision.