An R2 object together with its body.
readonly
body: ReadableStream<Uint8Array>
The object body as a stream — the zero-copy download path.
arrayBuffer(): Promise<ArrayBuffer>
Reads the whole body into memory.
An R2 object together with its body.
body: ReadableStream<Uint8Array>
The object body as a stream — the zero-copy download path.
arrayBuffer(): Promise<ArrayBuffer>
Reads the whole body into memory.
import { type IR2ObjectBody } from "cloudflare-plugin/src/index.ts";