Skip to main content

MAX_RESPONSE_BYTES

@forge/monorepo


@forge/monorepo / backend/src / MAX_RESPONSE_BYTES

Variable: MAX_RESPONSE_BYTES

const MAX_RESPONSE_BYTES: 200000 = 200_000

Defined in: backend/src/toolkit/http.ts:53

Bytes are bounded, and the bound is enforced while reading.

await response.text() on a multi-gigabyte response buffers all of it before any length check could run, so a limit applied afterwards protects nothing at all.