English | Русский
Rate limiting plugin for Hyperttp.
- Limits request throughput in the Core v2 pipeline.
- Supports protocol-neutral
SendRequest,UniversalResponse, andRequestContextvalues. - Helps keep client traffic within downstream service limits.
npm install @hyperttp/ratelimit
# or
bun add @hyperttp/ratelimitimport { HyperClient } from "hyperttp";
import { withRateLimit } from "@hyperttp/ratelimit";
const client = new HyperClient({
plugins: [withRateLimit()],
});Configure the plugin with the exported RateLimitOptions type.
MIT © dirold2