Preparing search index...
The search index is not available
@cloudflare/workers-types
@cloudflare/workers-types
R2ObjectBody
Interface R2ObjectBody
interface
R2ObjectBody
{
checksums
:
R2Checksums
;
customMetadata
?:
Record
<
string
,
string
>
;
etag
:
string
;
httpEtag
:
string
;
httpMetadata
?:
R2HTTPMetadata
;
key
:
string
;
range
?:
R2Range
;
size
:
number
;
storageClass
:
string
;
uploaded
:
Date
;
version
:
string
;
get
body
():
ReadableStream
<
any
>
;
get
bodyUsed
():
boolean
;
arrayBuffer
(
)
:
Promise
<
ArrayBuffer
>
;
blob
(
)
:
Promise
<
Blob
>
;
json
<
T
>
(
)
:
Promise
<
T
>
;
text
(
)
:
Promise
<
string
>
;
writeHttpMetadata
(
headers
)
:
void
;
}
Hierarchy (
view full
)
R2Object
R2ObjectBody
Index
Properties
checksums
custom
Metadata?
etag
http
Etag
http
Metadata?
key
range?
size
storage
Class
uploaded
version
Accessors
body
body
Used
Methods
array
Buffer
blob
json
text
write
Http
Metadata
Properties
Readonly
checksums
checksums
:
R2Checksums
Optional
Readonly
custom
Metadata
custom
Metadata
?:
Record
<
string
,
string
>
Readonly
etag
etag
:
string
Readonly
http
Etag
http
Etag
:
string
Optional
Readonly
http
Metadata
http
Metadata
?:
R2HTTPMetadata
Readonly
key
key
:
string
Optional
Readonly
range
range
?:
R2Range
Readonly
size
size
:
number
Readonly
storage
Class
storage
Class
:
string
Readonly
uploaded
uploaded
:
Date
Readonly
version
version
:
string
Accessors
body
get
body
(
)
:
ReadableStream
<
any
>
Returns
ReadableStream
<
any
>
body
Used
get
bodyUsed
(
)
:
boolean
Returns
boolean
Methods
array
Buffer
array
Buffer
(
)
:
Promise
<
ArrayBuffer
>
Returns
Promise
<
ArrayBuffer
>
blob
blob
(
)
:
Promise
<
Blob
>
Returns
Promise
<
Blob
>
json
json
<
T
>
(
)
:
Promise
<
T
>
Type Parameters
T
Returns
Promise
<
T
>
text
text
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
write
Http
Metadata
write
Http
Metadata
(
headers
)
:
void
Parameters
headers
:
Headers
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
checksums
custom
Metadata
etag
http
Etag
http
Metadata
key
range
size
storage
Class
uploaded
version
body
body
Used
array
Buffer
blob
json
text
write
Http
Metadata
@cloudflare/workers-types
Loading...