summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-09-12 02:46:45 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-09-12 02:46:53 +0200
commit4870a4e3da44d61f1fec67449d311fba5fc71af6 (patch)
treeba47d094d90e59d65ae7ec1d1bbfcb7f77844998
parent362189a5d35e7e17d4bcbb85e2296dae6579065e (diff)
downloadnode-4870a4e3da44d61f1fec67449d311fba5fc71af6.tar.gz
doc: http: expand request.headers documentation
-rw-r--r--doc/api/http.markdown11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown
index 48c9abaa0..7b3b9d93a 100644
--- a/doc/api/http.markdown
+++ b/doc/api/http.markdown
@@ -265,7 +265,16 @@ you can use the `require('querystring').parse` function, or pass
### 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