Package Exports
- nets
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nets) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nets
Mac/Linux | Windows | Browsers |
---|---|---|
![]() |
nothin but nets. http client that works in node and browsers
uses xhr for browsers and request for node
var nets = require("nets")
nets({
body: '{"foo": "bar"}',
url: "/foo",
method: "POST",
headers: {
"Content-Type": "application/json"
}
}, function (err, resp, body) {
})