webkit.response_policy_decision
Module for [ResponsePolicyDecision] class
Types 3
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.
Methods
ResponsePolicyDecisionGidBuilder builder() static nothrowGet builder for [webkit.response_policy_decision.ResponsePolicyDecision] Returns: New builder objectwebkit.urirequest.URIRequest request() @property nothrowGet `request` property. Returns: This property contains the #WebKitURIRequest associated with this policy decision.webkit.uriresponse.URIResponse response() @property nothrowGet `response` property. Returns: This property contains the #WebKitURIResponse associated with this policy decision.webkit.urirequest.URIRequest getRequest() nothrowReturn the #WebKitURIRequest associated with the response decision.webkit.uriresponse.URIResponse getResponse() nothrowGets the value of the #WebKitResponsePolicyDecision:response property. Returns: The URI response that is associated with this policy decision.bool isMainFrameMainResource() nothrowGets whether the request is the main frame main resource Returns: true if the request is the main frame main resouce or false otherwisebool isMimeTypeSupported() nothrowGets whether the MIME type of the response can be displayed in the #WebKitWebView.classResponsePolicyDecisionGidBuilderImpl(T) : webkit.policy_decision.PolicyDecisionGidBuilderImpl!T
Fluent builder implementation template for webkit.response_policy_decision.ResponsePolicyDecision