Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

RESTAPIRequest - getHeader(String header)

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');