Socket
Socket
Sign inDemoInstall

retry_http

Package Overview
Dependencies
23
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    retry_http

发送 http 请求,自动重试


Version published
Weekly downloads
0
Maintainers
1
Install size
1.24 MB
Created
Weekly downloads
 

Readme

Source

#简介 把 retrysuperagent 组合了一下

方便发送 http 请求.

#用法

// 重试次数 or 超时时间ms
var retryOption = {retries: 10, requestTimeout: 10}
retry_http.retryPost(url, param, retryOption, function (err, status, result) {
  console.log('send reqeust ok ', err, status, result);
})

#回调结果

  • status : 'timeout' / 'finish'
  • result : 请求得到的结果

Keywords

FAQs

Last updated on 13 Dec 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc