Skip to content

NEWECX/http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    
})();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages