interface R2PutOptions
Since 0.3.0

The subset of R2's put options this package writes.

Properties

readonly
optional
httpMetadata: { readonly contentType?: string; }

HTTP metadata stored on the object; R2 serves contentType back on GET.

readonly
optional
customMetadata: Readonly<Record<string, string>>

Arbitrary user metadata stored alongside the object.

Usage

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