method
xml_http_request?
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Request
xml_http_request?()public
Returns true if the “X-Requested-With” header contains “XMLHttpRequest” (case-insensitive), which may need to be manually added depending on the choice of JavaScript libraries and frameworks.