API ReferenceType Aliases
ThrottleRule
Type Alias: ThrottleRule
type ThrottleRule = {
burst?: number;
match: | string
| RegExp;
minIntervalMs: number;
};Defined in: transport/throttle.ts:107
One throttle rule. Matches outbound URLs and gates them at a minimum inter-call interval, with optional burst headroom.
Remarks
First-match wins inside a ThrottleConfig.rules array — order rules from most-specific to least-specific.
See
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
burst? | number | Optional burst capacity — N requests can fire freely before the floor kicks in. Useful for batched fetches (e.g. publicInfo lookups). Defaults to 0 (every request enforces the floor). | transport/throttle.ts:117 |
match | | string | RegExp | URL substring or regex. Substring match is case-sensitive. | transport/throttle.ts:109 |
minIntervalMs | number | Floor between consecutive matching requests, in milliseconds. | transport/throttle.ts:111 |