npm.io
2.0.0 • Published 2h ago

@hyperttp/queue

Licence
MIT
Version
2.0.0
Deps
0
Size
20 kB
Vulns
0
Weekly
0

@hyperttp/queue

English | Русский

Concurrency queue plugin for Hyperttp.

Features

  • Controls concurrent request execution in the Core v2 pipeline.
  • Supports protocol-neutral SendRequest, UniversalResponse, and RequestContext values.
  • Helps protect downstream services from request bursts.

Installation

npm install @hyperttp/queue
# or
bun add @hyperttp/queue

Usage

import { HyperClient } from "hyperttp";
import { withQueue } from "@hyperttp/queue";

const client = new HyperClient({
  plugins: [withQueue()],
});

Configure the plugin with the exported QueueOptions type.

License

MIT dirold2

Keywords