request.body()
Returns a request body for POST request or null for a GET.
Example
This examples shows a script that read the request body.
{
"email":"[email protected]",
"title": "Engineer",
"location": "Barcelona"
}var body = request.body();
console.log(body);{
"email":"[email protected]",
"title": "Engineer",
"location": "Barcelona"
}