I'm using npm package https by hardus to make get requests to NOAA. Documentation on NOAA is poor and on the https package is non-existent, and I am having trouble setting a header. Here is my code for my requests,
https.get(url, function(res) {
res.setEncoding('utf8');
res.on('data', (chunk) => {
//Parse through and deal with data...
}
res.on('error', (e) => {
//Deal with error...
}
}
How can I add a header to my request to include the Web Service Token?