doc: http: expand request.headers documentation

v0.8.16-release
Ben Noordhuis 2012-09-12 02:46:45 +02:00
parent 362189a5d3
commit 4870a4e3da
1 changed files with 10 additions and 1 deletions

View File

@ -265,7 +265,16 @@ you can use the `require('querystring').parse` function, or pass
### request.headers ### request.headers
Read only. Read only map of header names and values. Header names are lower-cased.
Example:
// Prints something like:
//
// { 'user-agent': 'curl/7.22.0',
// host: '127.0.0.1:8000',
// accept: '*/*' }
console.log(request.headers);
### request.trailers ### request.trailers