node js get headers from request code example
Example 1: hwo to cehck req header in js
var host = req.headers['host'];
Example 2: node js response header
response.setHeader("Content-Type", "text/html");
var host = req.headers['host'];
response.setHeader("Content-Type", "text/html");