---
title: req.xhr
description: A Boolean property that is true if the request X-Requested-With header field is "XMLHttpRequest"
---

<h3 id='req.xhr'>req.xhr</h3>

A Boolean property that is `true` if the request's `X-Requested-With` header field is
"XMLHttpRequest", indicating that the request was issued by a client library such as jQuery.

```js
console.dir(req.xhr);
// => true
```
