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
GType _gType() @property
ResponsePolicyDecision self()Returns `this`, for use in `with` statements.
ResponsePolicyDecisionGidBuilder builder()Get builder for [webkit.responsepolicydecision.ResponsePolicyDecision] Returns: New builder object
webkit.urirequest.URIRequest request() @propertyGet `request` property. Returns: This property contains the #WebKitURIRequest associated with this policy decision.
webkit.uriresponse.URIResponse response() @propertyGet `response` property. Returns: This property contains the #WebKitURIResponse associated with this policy decision.
webkit.urirequest.URIRequest getRequest()Return the #WebKitURIRequest associated with the response decision.
webkit.uriresponse.URIResponse getResponse()Gets the value of the #WebKitResponsePolicyDecision:response property. Returns: The URI response that is associated with this policy decision.
bool isMainFrameMainResource()Gets whether the request is the main frame main resource Returns: true if the request is the main frame main resouce or false otherwise
bool isMimeTypeSupported()Gets whether the MIME type of the response can be displayed in the #WebKitWebView.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [webkit.response_policy_decision.ResponsePolicyDecision]