class ActionDispatch::Request
def xml_http_request?
Experimental RBS support (using type sampling data from the type_fusion
project).
def xml_http_request?: () -> false
This signature was generated using 4 samples from 1 application.
(case-insensitive), which may need to be manually added depending on the
Returns true if the +X-Requested-With+ header contains "XMLHttpRequest"
def xml_http_request? /XMLHttpRequest/i.match?(get_header("HTTP_X_REQUESTED_WITH")) end