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

Lines changed: 4 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy