Skip to content

Commit f6f4365

Browse files
committed
Update documentation to match node http module
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.
1 parent 17b2990 commit f6f4365

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

readme.markdown

+4-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ Close and send the request body, optionally with additional `data` to append.
8181

8282
# response methods
8383

84-
## res.getHeader(key)
84+
## res.headers
8585

86-
Return an http header, if set. `key` is case-insensitive.
86+
The response headers object.
87+
88+
Read only map of header names and values. Header names are lower-cased.
8789

8890
# response attributes
8991

0 commit comments

Comments
 (0)