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 _getGType() static nothrow
GType _gType() @property nothrow
ResponsePolicyDecision self() nothrowReturns `this`, for use in `with` statements.
ResponsePolicyDecisionGidBuilder builder() static nothrowGet builder for [webkit.response_policy_decision.ResponsePolicyDecision] Returns: New builder object
webkit.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 otherwise
bool isMimeTypeSupported() nothrowGets whether the MIME type of the response can be displayed in the #WebKitWebView.
Constructors
this(void * ptr, Flag!"Take" take)