method R2Storage.prototype.getStream
R2Storage.prototype.getStream(path: string): Promise<ReadableStream<Uint8Array>>

Streams an object without buffering it.

Parameters

path: string

The object path

Return Type

The object body as a stream

Throws

CloudflareObjectNotFoundError

When the object does not exist

Usage

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