Skip to content

basalt / drives/src / RATE_LIMIT_BODY_BYTES

Variable: RATE_LIMIT_BODY_BYTES ​

> const RATE_LIMIT_BODY_BYTES: number

Defined in: drives/src/fetch.ts:174

How much of a 429/503 body may be read to find a vendor retry hint.

Small on purpose: the whole point of destroying a rate-limited body is that a throttled provider must not be able to make us read more, and a provider that answers 429 with a gigabyte is exactly the case this bound exists for.

Released under the MIT License.