The object key
Reads an object.
The object key
The object with its body, or null when it does not exist
Reads object metadata without transferring the body.
The object key
The metadata, or null when the object does not exist
Writes an object.
The object key
The object bytes
Optionaloptions: R2PutOptions
R2's own put options. The platform spells the content type
httpMetadata.contentType and user metadata customMetadata, which is why
R2Storage.put translates rather than forwarding
PutObjectOptions unchanged.
The stored object's metadata
Removes an object. Succeeds whether or not it existed, and reports nothing about what was removed — which is why
R2Storage.deleteheads first to honor its committedPromise<boolean>.