Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijar committed May 5, 2016
1 parent beebb55 commit 54281e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,19 @@ module.exports = {
};
```

And in your service call:

```js
fetcher
.read('someData')
.params({id: ###})
.end(function (err, data, meta) {
if (err) {
// err.output will be { message: "Not found", more: "meta data" }
}
});
```

## XHR Timeouts

`xhrTimeout` is an optional config property that allows you to set timeout (in ms) for all clientside requests, defaults to `3000`.
Expand Down

0 comments on commit 54281e2

Please sign in to comment.