method IR2Bucket.head
IR2Bucket.head(key: string): Promise<IR2Object | null>

Reads object metadata without transferring the body.

Parameters

key: string

The object key

Return Type

Promise<IR2Object | null>

The metadata, or null when the object does not exist

Usage

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