Skip to content
Ivaylo Ivanov edited this page Jan 16, 2016 · 2 revisions

The request object represents the HTTP request and it's using the Express.js request for a reference. Defined in Esrol-router - request.js. Currently, only few methods are implemented.

path

Contains the path part of the request URL.

// example.com/users?sort=desc
req.path
// => "/users"

xhr

A Boolean value 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.

req.xhr
// => true / false

Clone this wiki locally