Skip to content

Commit

Permalink
edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mapper committed May 21, 2014
1 parent 2a3df46 commit 625f618
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.md
Expand Up @@ -9,3 +9,18 @@ nothin but nets. http client that works in node and browsers

uses https://www.npmjs.org/package/request for browsers and https://www.npmjs.org/package/request for node


```js
var nets = require("nets")

nets({
body: '{"foo": "bar"}',
url: "/foo",
method: "POST",
headers: {
"Content-Type": "application/json"
}
}, function (err, resp, body) {

})
```

0 comments on commit 625f618

Please sign in to comment.