3.2.2 • Published 8 months ago

@bbc/http-transport-request-collapse v3.2.2

Weekly downloads
282
License
Apache-2.0
Repository
-
Last release
8 months ago

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
3.2.2

8 months ago

3.2.1

8 months ago

3.2.0

8 months ago

3.1.2

2 years ago

3.1.1

5 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago