diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-12 02:46:45 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-12 02:46:53 +0200 |
commit | 4870a4e3da44d61f1fec67449d311fba5fc71af6 (patch) | |
tree | ba47d094d90e59d65ae7ec1d1bbfcb7f77844998 | |
parent | 362189a5d35e7e17d4bcbb85e2296dae6579065e (diff) | |
download | nodejs-4870a4e3da44d61f1fec67449d311fba5fc71af6.tar.gz nodejs-4870a4e3da44d61f1fec67449d311fba5fc71af6.tar.bz2 nodejs-4870a4e3da44d61f1fec67449d311fba5fc71af6.zip |
doc: http: expand request.headers documentation
-rw-r--r-- | doc/api/http.markdown | 11 |
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 |