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]
request
webkit.urirequest.URIRequest request [@property getter]

Get request property.

response
webkit.uriresponse.URIResponse response [@property getter]

Get response property.

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.