Skip to content

DEFAULT_MAX_RESPONSE_BYTES

const DEFAULT_MAX_RESPONSE_BYTES: 1000000 = 1_000_000

Defined in: web/tools.ts:23

Byte cap on a response body. Matches src/file/’s DEFAULT_MAX_BYTES and src/bash/’s DEFAULT_MAX_OUTPUT_BYTES, which are each declared by their own module for the same reason this one is: a file-read cap, a subprocess-output cap and a response cap are independent knobs that happen to share a default, not one value restated three times.