joepie91 / node-bhttp

A sane HTTP client library for Node.js with Streams2 support.
62 stars 12 forks source link

Update docs to indicate response object from GET, POST methods is http.IncomingMessage #19

Open elevenE opened 8 years ago

elevenE commented 8 years ago

I was looking in the docs on how can I get the HTTP response status code but couldn't find it. Later found out (joe answered on IRC channel) that the API returns http.IncomingMessage object on response and status code can then simply be retrieved by response.statusCode.