R2Object
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2032
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new R2Object():
R2Object
Returns
Section titled “Returns”R2Object
Properties
Section titled “Properties”checksums
Section titled “checksums”
readonly
checksums:R2Checksums
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2038
customMetadata?
Section titled “customMetadata?”
readonly
optional
customMetadata:Record
<string
,string
>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2041
readonly
etag:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2036
httpEtag
Section titled “httpEtag”
readonly
httpEtag:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2037
httpMetadata?
Section titled “httpMetadata?”
readonly
optional
httpMetadata:R2HTTPMetadata
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2040
readonly
key:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2033
range?
Section titled “range?”
readonly
optional
range:R2Range
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2042
readonly
size:number
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2035
ssecKeyMd5?
Section titled “ssecKeyMd5?”
readonly
optional
ssecKeyMd5:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2044
storageClass
Section titled “storageClass”
readonly
storageClass:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2043
uploaded
Section titled “uploaded”
readonly
uploaded:Date
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2039
version
Section titled “version”
readonly
version:string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2034
Methods
Section titled “Methods”writeHttpMetadata()
Section titled “writeHttpMetadata()”writeHttpMetadata(
headers
):void
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2045
Parameters
Section titled “Parameters”headers
Section titled “headers”Returns
Section titled “Returns”void