RESTResponseV2 - getHeader(String name)

Get the value for a specified header.

Table 1. Parameters
Name Type Description
name String The name of the header that you want the value for, such as Set-Cookie.
Table 2. Returns
Type Description
String The value of the specified header.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
var response = sm.execute();
var headerVal = response.getHeader("Content-Type");