InboundOptions
Defined in: src/inbound.ts:47
Properties
Section titled “Properties”concurrency?
Section titled “concurrency?”
optionalconcurrency?:object
Defined in: src/inbound.ts:51
Max requests in flight; beyond queueLimit waiting requests, reject fast with 429/503 (load shedding).
permitLimit
Section titled “permitLimit”permitLimit:
number
queueLimit?
Section titled “queueLimit?”
optionalqueueLimit?:number
queueTimeout?
Section titled “queueTimeout?”
optionalqueueTimeout?:Duration
pipeline?
Section titled “pipeline?”
optionalpipeline?:ResiliencePipeline<any,any>
Defined in: src/inbound.ts:63
Bring your own pipeline instead (takes precedence).
rateLimit?
Section titled “rateLimit?”
optionalrateLimit?: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.
optionalkey?: (req) =>string
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”string
maxPartitions?
Section titled “maxPartitions?”
optionalmaxPartitions?:number
permitLimit
Section titled “permitLimit”permitLimit:
number
segmentsPerWindow?
Section titled “segmentsPerWindow?”
optionalsegmentsPerWindow?:number
window
Section titled “window”window:
Duration
rateLimitHeaders?
Section titled “rateLimitHeaders?”
optionalrateLimitHeaders?: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.
timeout?
Section titled “timeout?”
optionaltimeout?:Duration
Defined in: src/inbound.ts:49
Budget per request. Everything called through a pipeline during the request inherits it (deadline propagation).