How to get "HTTP_REFERER" with NodeJS?

A way to get HTTP_REFERER , We can use document.referrer in browser side javascript . But how can we get it in NodeJS ?


You can get it by...

req.headers.referer

in...

var http = require('http');
server = http.createServer(function(req, res){
...
}