Closed nelsonic closed 9 years ago
As far as I can tell, the request stream is returned so you can .write() to the request body? Both shot and request pass request body into options.
If the logic of writing this body from options to the request stream is contained within http_request, the performance shouldn't change and it will have a slightly more straightforward API.
Happy to PR if you agree
PR #FTW :+1:
Just need to version bump to 4.0.3 and add your name to package.json http://browsenpm.org/package.json#contributors :+1:
Thanks @FilWisher :8ball: @iteles to review/merge. :tada:
Done! :+1:
No need to return the request object. https://github.com/nelsonic/esta/blob/40c4ef3016508385ba4537aa9facc770cc734452/lib/http_request.js#L31 Could we simplify this?