RESTMessageV2 - getRequestHeaders()

Get HTTP headers that were set by the REST client and the associated values.

This method does not return headers set automatically by the system. To configure this method to return all headers, set the property glide.http.log_debug to true.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Object An Object that maps the name of each header to the associated value.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
var headers = sm.getRequestHeaders();