javascript - How to get raw http header string in node.js with express.js -


i work node.js , express.js. current project need access raw strings of http headers (charset , accpeted).

there function in express.js returns charsets , accepted headers, however, these sorted quality , therefore not useable me in special case need.

req.accepted // returns sorted array of accepted header  req.acceptedcharsets // returns sorted array of accepted lang header 

however, need raw strings (iso-8859-5;q=.2, unicode-1-1;q=0.8, text/*;q=.5, application/json).

now there way how can access raw strings in express app?

best regards, crispin

req.headers

as in

    var express = require('express');  var app = express.createserver();  app.get('/', function(req, res){     console.log(req.headers);     res.header('time', 12345);      res.send('hello world'); });  app.listen(3000); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -