request-header Install npm install request-header Example var myHead = require("request-header"); myHead.host = "www.google.com:80"; myHead.connection = "close"; myHead.method = "GET" myHead.custom = "Mycustom: header-field"; console.log(myHead.header());