WordPress 5.2.0 Hooks, Functions, Classes and Methods
Page 16

wp_is_jsonp_request()

Checks whether current request is a JSONP request, or is expecting a JSONP response.

wp_is_xml_request()

Checks whether current request is an XML request, or is expecting an XML response.