You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 7 Next »
Example:
The body of the request.
Name
getHeader
Returns the value of the header specified.
const acceptHeader = request.getHeader('accept');
This method allows defining all request headers and their values.
Source request URL: https://instance.simpleone.ru/api/now/table/myTable?active=false&name=now [ 'active' => false 'name' => 'now' ]
Source request URL: https://instance.simpleone.ru/api/now/table/myTable?active=false&name=now [ active=false&name=now ]
const query = request.uri; //"api/now/table/myTable" Source request URL: https://instance.simpleone.ru/api/now/table/myTable?active=false&name=now.
const query = request.url; //"https://instance.simpleone.ru/api/now/table/myTable?active=false&name=now" Source request URL: https://instance.simpleone.ru/api/now/table/myTable?active=false&name=now