@bbc/http-transport-request-collapse

3.2.2 • Public • Published

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

Package Sidebar

Install

npm i @bbc/http-transport-request-collapse

Weekly Downloads

75

Version

3.2.2

License

Apache-2.0

Unpacked Size

12 kB

Total Files

8

Last publish

Collaborators

  • bhartn01
  • ibl
  • kieranjoyce
  • pjlangley
  • szpytfire-bbc
  • simontanner
  • simongregory
  • tonymcbeth
  • johnnewman
  • drrobharper
  • jamiebower185
  • benjwheeler
  • onlyonehas
  • gingertonicst
  • iuketaylor
  • rlfbbc
  • monsai
  • notten13
  • vaughr03
  • npmbs
  • brotherkaif
  • naivinh.ta.bbc
  • alexshelley
  • oliviadrury
  • pshaw03
  • chriss901
  • david.toluhi
  • amitsavant
  • eobr
  • cjewell47
  • vinodrane
  • sbason
  • lexedwardsbbc
  • dwalker487
  • katyasa
  • felixmercermoss
  • rosemcnally
  • gozcue01-bbc
  • marinos-papamichael
  • cv-bbc