Skip to content

readCappedBody

readCappedBody(request, deps, clientIp?): Promise<Uint8Array<ArrayBufferLike> | null>

Defined in: packages/core/src/core/bounded-body-reader.ts:186

Read the request body under the detection caps. Returns null when the body is unavailable (timeout, budget exhaustion, read error, or an oversized body without a bounded reader on the request).

GuardRequest

BoundedBodyReaderDeps

string = ''

Promise<Uint8Array<ArrayBufferLike> | null>