The request object is created by the client and sent to every middleware callback on the server side.
Contains an object with data submitted by the client in the request body.
Contains an object with information of the client emitting the request.
A universally unique identifier (UUID) assigned automatically on creation.
Contains a string corresponding to the HTTP method of the request: GET, POST, PUT, and so on.
This property is an object containing properties mapped to the named route “parameters”. For example, if you have the route /user/:name, then the “name” property is available as req.params.name. This object defaults to {}.
For more information, check req.params in the Express documentation.
Contains the path part of the request URL. This property is populated by the middleware path
.
This property is an object containing a property for each query string parameter in the route. If there is no query string, it is the empty object, {}.
For more information, check req.query in the Express documentation.
This contains only the URL that is present in the actual HTTP request.
This method is used to set the url. In future versions it will be more useful.