dhttp
Just another biased browserify-compatible HTTP/HTTPS/XHR wrapper. No compatability with IE.
Automatically parses application/json
, text/(plain|html)
and application/octet-stream
.
Example
let dhttp =// ...
To bypass statusCode
handling, you can use dhttp/200
which throws a descriptive error for any statusCode
other than 200 using http-status-codes
.
let dhttp =// ...