gi-webkit2-4.0.25: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.ResponsePolicyDecision

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf ResponsePolicyDecision o) => IsResponsePolicyDecision o Source #

Type class for types which can be safely cast to ResponsePolicyDecision, for instance with toResponsePolicyDecision.

toResponsePolicyDecision :: (MonadIO m, IsResponsePolicyDecision o) => o -> m ResponsePolicyDecision Source #

Cast to ResponsePolicyDecision, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getRequest

responsePolicyDecisionGetRequest Source #

Arguments

:: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) 
=> a

decision: a ResponsePolicyDecision

-> m URIRequest

Returns: The URI request that is associated with this policy decision.

Return the URIRequest associated with the response decision. Modifications to the returned object are <emphasis>not</emphasis> taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a response decision should be taken or not. To modify requests before they are sent over the network the WebKitPage::send-request signal can be used instead.

getResponse

responsePolicyDecisionGetResponse Source #

Arguments

:: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) 
=> a

decision: a ResponsePolicyDecision

-> m URIResponse

Returns: The URI response that is associated with this policy decision.

Gets the value of the ResponsePolicyDecision:response property.

isMimeTypeSupported

responsePolicyDecisionIsMimeTypeSupported Source #

Arguments

:: (HasCallStack, MonadIO m, IsResponsePolicyDecision a) 
=> a

decision: a ResponsePolicyDecision

-> m Bool

Returns: True if the MIME type of the response is supported or False otherwise

Gets whether the MIME type of the response can be displayed in the WebView that triggered this policy decision request. See also webViewCanShowMimeType.

Since: 2.4

Properties

request

This property contains the URIRequest associated with this policy decision.

getResponsePolicyDecisionRequest :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIRequest Source #

Get the value of the “request” property. When overloading is enabled, this is equivalent to

get responsePolicyDecision #request

response

This property contains the URIResponse associated with this policy decision.

getResponsePolicyDecisionResponse :: (MonadIO m, IsResponsePolicyDecision o) => o -> m URIResponse Source #

Get the value of the “response” property. When overloading is enabled, this is equivalent to

get responsePolicyDecision #response