Skip to content
Buy me a coffee

InboundOptions

Defined in: src/inbound.ts:47

optional concurrency?: object

Defined in: src/inbound.ts:51

Max requests in flight; beyond queueLimit waiting requests, reject fast with 429/503 (load shedding).

permitLimit: number

optional queueLimit?: number

optional queueTimeout?: Duration


optional pipeline?: ResiliencePipeline<any, any>

Defined in: src/inbound.ts:63

Bring your own pipeline instead (takes precedence).


optional rateLimit?: object

Defined in: src/inbound.ts:56

Sliding-window rate limit, checked first; 429 beyond it. With key (it receives Express’s req or Hono’s c, e.g. (req) => req.ip) each key gets its own limit (at most maxPartitions keys kept, default 100 000); without it, one limit for all.

optional key?: (req) => string

any

string

optional maxPartitions?: number

permitLimit: number

optional segmentsPerWindow?: number

window: Duration


optional rateLimitHeaders?: false | "draft" | "legacy" | "both"

Defined in: src/inbound.ts:61

Headers sent when the pipeline has a rate limiter: 'draft' (default) IETF RateLimit-Limit/-Remaining/-Reset, 'legacy' X-RateLimit-*, 'both', or false. Reset is in seconds from now in both forms.


optional timeout?: Duration

Defined in: src/inbound.ts:49

Budget per request. Everything called through a pipeline during the request inherits it (deadline propagation).