pub trait ResponsePolicyDecisionExt: 'static {
    fn request(&self) -> Option<URIRequest>;
    fn response(&self) -> Option<URIResponse>;
    fn is_mime_type_supported(&self) -> bool;
    fn connect_request_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_response_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Required Methods

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.

Returns

The URI request that is associated with this policy decision.

Gets the value of the property::ResponsePolicyDecision::response property.

Returns

The URI response that is associated with this policy decision.

Available on crate feature v2_4 only.

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

Gets whether the MIME type of the response can be displayed in the WebView that triggered this policy decision request. See also WebViewExt::can_show_mime_type().

Returns

true if the MIME type of the response is supported or false otherwise

Implementors