You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@bbc/http-transport-request-collapse

Package Overview
Dependencies
Maintainers
20
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbc/http-transport-request-collapse

collapse requests

3.2.2
latest
npmnpm
Version published
Weekly downloads
121
-30.46%
Maintainers
20
Weekly downloads
 
Created
Source

NPM downloads npm license github-issues stars forks

HTTP Transport Request Collapse

Merges duplicate requests into a single request

Installation

npm install --save @bbc/http-transport-request-collapse

Usage

const HttpTransport = require('@bbc/http-transport');
const collapse = require('@bbc/http-transport-request-collapse').middleware;

const client = HttpTransport
  .createBuilder()
  .use(collapse())
  .createClient();

Key generation

⚠️ 🔥 Requests are de-dupded by creating a cache key from the request. Currently, this is only based on the url 🔥 ⚠️

Test

npm test

Keywords

http-transport

FAQs

Package last updated on 29 Sep 2023

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