Socket
Book a DemoInstallSign in
Socket

request-easy

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-easy

request simplified

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

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

optiondefaultdescription
retryOnErrornot setretry the request on an Node.js error eg. req.on('error'), res.on('error')
retryOn5xxnot setretry the request on http 5xx status code
maxTriesnot setlimit the retries for a request with http 5xx status code; retryOn5xx has to be true
setContentLengthnot setset the content-length header if you provide a Buffer

handler

on2xx
on3xx
on4xx
on5xx
on6xx

pass data to request

buffer
stream
externalWrite

Keywords

request

FAQs

Package last updated on 20 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts