Socket
Book a DemoInstallSign in
Socket

@ritani/http-client

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ritani/http-client

http client supports throttle and multiple tries

latest
npmnpm
Version
1.2.0
Version published
Maintainers
0
Created
Source

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

Keywords

scalable

FAQs

Package last updated on 29 Aug 2024

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