RESTMessageV2 - setRequestHeader(String name, String value)

Set an HTTP header in the REST message to the specified value.

Table 1. Parameters
Name Type Description
name String The name of the header.
value String The value to assign to the specified header.
Table 2. Returns
Type Description
void
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
sm.setRequestHeader("Accept","Application/json");