Skip to content

Commit

Permalink
Merge pull request request#736 from mmalecki/http-clientresponse
Browse files Browse the repository at this point in the history
Fix callback arguments documentation
  • Loading branch information
mikeal committed Dec 17, 2013
2 parents 09fbb0d + 18a5a05 commit 5c04170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ The first argument can be either a `url` or an `options` object. The only requir
The callback argument gets 3 arguments:
1. An `error` when applicable (usually from the `http.Client` option, not the `http.ClientRequest` object)
2. An `http.ClientResponse` object
1. An `error` when applicable (usually from [`http.ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest) object)
2. An [`http.IncomingMessage`](http://nodejs.org/api/http.html#http_http_incomingmessage) object
3. The third is the `response` body (`String` or `Buffer`)
## Convenience methods
Expand Down

0 comments on commit 5c04170

Please sign in to comment.