Previous Page
isPut()

Solar_Request
isXhr()

Next Page
locale()

isXhr()

public bool isXhr ( )

Is this an XmlHttpRequest?

Parameters

  • None.

Returns

  • (bool)

Description

Is this an XmlHttpRequest?

Checks if the X-Requested-With HTTP header is XMLHttpRequest. Generally used in addition to the isPost(), isGet(), etc. methods to identify Ajax-style HTTP requests.