Hi,
im new to Node.js and Express.js (coming from Ruby on Rails and Ruby w/ Sinatra).
So I need to access the HTTP ACCEPT header in one of my functions.
I know with express if i have something like this:
app.get('/', function(req, res) {
req.accepted();
});
However, this returns an array with accepted MIME types sorted by Quality.
Is there a way i can access the raw string of the HTTP ACCEPTED header?
I want something returned like this (or without the Accept: infront, but that is optional):Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Hi,
im new to Node.js and Express.js (coming from Ruby on Rails and Ruby w/ Sinatra).
So I need to access the HTTP ACCEPT header in one of my functions.
I know with express if i have something like this:
app.get('/', function(req, res) {
req.accepted();
});
However, this returns an array with accepted MIME types sorted by Quality.
Is there a way i can access the raw string of the HTTP ACCEPTED header?
I want something returned like this (or without the Accept: infront, but that is optional):Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
--
You received this message because you are subscribed to the Google Groups "Express" group.
To unsubscribe from this group and stop receiving emails from it, send an email to express-js+...@googlegroups.com.
To post to this group, send email to expre...@googlegroups.com.
Visit this group at http://groups.google.com/group/express-js?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.