...

/

Request Methods and Method Spoofing

Request Methods and Method Spoofing

Discover useful request methods and learn about method spoofing.

We can create routes to URLs in start/route.js. For each URL request, AdonisJs creates a request object with the global middleware. The global middleware that does all of this is called BodyParser and is installed by default and registered in start/kernel.js. When a user submits a form, each input field, the HTTP method, the user’s IP address, etc. can be read using this request object.

Request methods

The following are some useful request methods:

Method Description
request.all()
...