interface IR2ObjectBody
extends IR2Object
Since 0.2.0

An R2 object together with its body.

Properties

The object body as a stream — the zero-copy download path.

Methods

arrayBuffer(): Promise<ArrayBuffer>

Reads the whole body into memory.

Usage

import { type IR2ObjectBody } from "cloudflare-plugin/src/index.ts";