https://github.com/baslr/node-request
simple and reliable request lib transparent onto of Node.js http.request
https://github.com/baslr/node-request
Last synced: 8 months ago
JSON representation
simple and reliable request lib transparent onto of Node.js http.request
- Host: GitHub
- URL: https://github.com/baslr/node-request
- Owner: baslr
- Created: 2016-07-25T19:51:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T21:22:30.000Z (about 9 years ago)
- Last Synced: 2025-06-27T09:06:02.310Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-request
`request-easy` is a thin layer ontop of Node.js http(s).request and handels all the little nasty things for you.
## options
option | default | description
----|-----|----------
retryOnError | not set | retry the request on an Node.js error eg. req.on('error'), res.on('error')
retryOn5xx | not set | retry the request on http 5xx status code
maxTries | not set | limit the retries for a request with http 5xx status code; retryOn5xx has to be true
setContentLength | not set | set the `content-length` header if you provide a Buffer
## handler
on2xx
on3xx
on4xx
on5xx
on6xx
## pass data to request
buffer
stream
externalWrite