WebKit2.ResponsePolicyDecision.prototype.is_mime_type_supported
function is_mime_type_supported(): Boolean { // Gjs wrapper for webkit_response_policy_decision_is_mime_type_supported() }
Gets whether the MIME type of the response can be displayed in the WebKit2.WebView that triggered this policy decision request. See also WebKit2.WebView.prototype.can_show_mime_type.
Since 2.4
- Returns
true if the MIME type of the response is supported or false otherwise