Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chemzqm/one-query
Make the same get request made only once.
https://github.com/chemzqm/one-query
Last synced: about 1 month ago
JSON representation
Make the same get request made only once.
- Host: GitHub
- URL: https://github.com/chemzqm/one-query
- Owner: chemzqm
- Created: 2013-07-26T07:41:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-16T05:27:19.000Z (over 11 years ago)
- Last Synced: 2024-10-29T10:44:58.365Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# one-query
Make the same get request made only once.
The default timeout is 10s.
If any error happens, the following request with the same url & parmas will be sent again.
## Installation
Install with [component(1)](http://component.io):
$ component install chemzqm/one-query
## API
### query(url, [params], callback)
The same as superagent.
## example
``` js
var query = require('one-query');query('/test', {x:1, y:2}, function(err, res) {
console.log(res.status);
});
```## License
MIT