@ritani/http-client

1.1.0 • Public • Published

A Scalable HTTP Client with Retries and Throttle Features

How to install

npm install @ritani/http-client

How to use

const http_client = require('@ritani/http-client');
const node_path =  require('path');

(async () => {

    const url = 'https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png';

    const local_filepath = node_path.join(__dirname, 'google_logo.png');

    const options = {method: 'get', url, local_filepath};

    const response = await http_client(options);
    
    console.log('response status', response.status);
    
})();

Dependencies (1)

Dev Dependencies (4)

Package Sidebar

Install

npm i @ritani/http-client

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

10.1 kB

Total Files

9

Last publish

Collaborators

  • daniyace
  • judak
  • samwen