Scoped GlideServletRequest - getHeaders(String name)

Returns the header values.

Table 1. Parameters
Name Type Description
name String Names of the headers to be retrieved.
Table 2. Returns
Type Description
String The header values.
var headerValue = g_request.getHeaders("host");

Output:

demonightlyus.service-now.com