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

    Install

    npm i @ritani/http-client

    DownloadsWeekly Downloads

    14

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    10.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • gusna
    • judak
    • samwen