RESTAPIRequest - getHeader(String header)

Get the value of a specific header from the web service request.

Table 1. Parameters
Name Type Description
header String The name of the header, such as accept or content-type.
Table 2. Returns
Type Description
String The value of the specified header.

var acceptHeader = request.getHeader('accept');