Scoped GlideServletRequest - getHeaderNames()

Returns a comma-separated list of header names.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String A comma-separated list of header names.
var headerList = g_request.getHeaderNames();

Output:

host,connection,cache-control,authorization,accept,user-agent,accept-encoding,accept-language,
cookie,x-forwarded-proto,x-forwarded-host,x-forwarded-for