ResponsePolicyDecision

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.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

getRequest
webkit.urirequest.URIRequest getRequest()

Return the #WebKitURIRequest associated with the response decision.

getResponse
webkit.uriresponse.URIResponse getResponse()

Gets the value of the #WebKitResponsePolicyDecision:response property.

isMainFrameMainResource
bool isMainFrameMainResource()

Gets whether the request is the main frame main resource

isMimeTypeSupported
bool isMimeTypeSupported()

Gets whether the MIME type of the response can be displayed in the #WebKitWebView.

self
ResponsePolicyDecision self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From PolicyDecision

getGType
GType getGType()
gType
GType gType [@property getter]
self
PolicyDecision self()

Returns this, for use in with statements.

download
void download()

Spawn a download from this decision.

ignore
void ignore()

#WebKitResponsePolicyDecision, this would cancel the request.

use
void use()

Accept the action which triggered this decision.

useWithPolicies
void useWithPolicies(webkit.website_policies.WebsitePolicies policies)

Accept the navigation action and continue with provided policies.