-
Notifications
You must be signed in to change notification settings - Fork 0
Request
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.
Contains the path part of the request URL.
// example.com/users?sort=desc
req.path
// => "/users"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