Skip to content

Commit

Permalink
Update documentation to match node http module
Browse files Browse the repository at this point in the history
See #71. The Node http module's response object has `response.headers`, not `response.getHeader()`. The *http-browserify* module provides both, but previously only documented `response.getHeader()`. This changes the documentation to document `response.headers` instead. The `response.getHeader()` function is left undocumented as technically it does not match the node http module implementation.
  • Loading branch information
parshap committed Oct 31, 2014
1 parent 17b2990 commit 7c6e4ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ Close and send the request body, optionally with additional `data` to append.

# response methods

## res.getHeader(key)
## res.headers

Return an http header, if set. `key` is case-insensitive.
The request/response headers object.

Read only map of header names and values. Header names are lower-cased.

# response attributes

Expand Down

0 comments on commit 7c6e4ff

Please sign in to comment.