ResponsePolicyDecision

class ResponsePolicyDecision(pointer: <Error class: unknown class><<Error class: unknown class>>) : PolicyDecision

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

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

This property contains the #WebKitURIRequest associated with this policy decision.

Link copied to clipboard

This property contains the #WebKitURIResponse associated with this policy decision.

Link copied to clipboard
val webkitPolicyDecisionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val webkitResponsePolicyDecisionPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun download()

Spawn a download from this decision.

Link copied to clipboard
open fun ignore()

#WebKitResponsePolicyDecision, this would cancel the request.

Link copied to clipboard

Gets whether the request is the main frame main resource

Link copied to clipboard

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

Link copied to clipboard
open fun use()

Accept the action which triggered this decision.

Link copied to clipboard
open fun useWithPolicies(policies: WebsitePolicies)

Accept the navigation action and continue with provided @policies.