method IR2Bucket.get
IR2Bucket.get(key: string): Promise<IR2ObjectBody | null>

Reads an object.

Parameters

key: string

The object key

Return Type

Promise<IR2ObjectBody | null>

The object with its body, or null when it does not exist

Usage

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