Socket
Book a DemoInstallSign in
Socket

arida-fetch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arida-fetch

communicating framework with server for fetching data sychronously by default and combine the http request

0.0.1
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

A libabry for communicating with server. we send requests sychronously by default in case of occuring wired things. And combine your http request is supported. But it needs backend to analyze and response the serizable responses content.

Install

npm install arida-fetch

Usage example

impot fetch from 'arida-fetch';

fetch.push({
	url: 'http://www.itechnique.cn/get/1',
	mothod: 'get',
	setting: {
		strategy: 'lazy'
	}
});
fetch.push({
	url: 'http://www.itechnique.cn/get/2',
	mothod: 'get',
	setting: {
		strategy: 'lazy'
	}
});

Then two requets will be sent to the server on by one . each has an 500ms delay. For more information, plz check the API doc.

API

The following is an incomplete list of arida-fetch API. It should give you a general concept of arida-fetch's usage.

  • .send(url, type || 'get', syc || true): send your request to server;
  • .push(param): push the request to the quene;
  • .batchSend(param): send the requests of the quene;
  • `.setting: only default and lazy(sleep 500ms before per request) supported at present TODO

Contributing

We welcome all contributions, please submit any ideas as pull requests or as a GitHub issue.

Licence

MIT

Keywords

fetch

FAQs

Package last updated on 19 Apr 2016

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.