express reading url bar code example
Example 1: express get full url
var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
Example 2: http header express
app.get('/', (req, res) => {
req.header('User-Agent')
})
// Use the Request.header() method to access
//one individual request header’s value