Preparing search index...
The search index is not available
@cloudflare/workers-types
@cloudflare/workers-types
R2Bucket
Class R2Bucket
Abstract
Index
Constructors
constructor
Methods
create
Multipart
Upload
delete
get
head
list
put
resume
Multipart
Upload
Constructors
constructor
new
R2
Bucket
(
)
:
R2Bucket
Returns
R2Bucket
Methods
create
Multipart
Upload
create
Multipart
Upload
(
key
,
options
?
)
:
Promise
<
R2MultipartUpload
>
Parameters
key
:
string
Optional
options
:
R2MultipartOptions
Returns
Promise
<
R2MultipartUpload
>
delete
delete
(
keys
)
:
Promise
<
void
>
Parameters
keys
:
string
|
string
[]
Returns
Promise
<
void
>
get
get
(
key
,
options
)
:
Promise
<
R2Object
|
R2ObjectBody
>
Parameters
key
:
string
options
:
R2GetOptions
&
{
onlyIf
:
Headers
|
R2Conditional
;
}
Returns
Promise
<
R2Object
|
R2ObjectBody
>
get
(
key
,
options
?
)
:
Promise
<
R2ObjectBody
>
Parameters
key
:
string
Optional
options
:
R2GetOptions
Returns
Promise
<
R2ObjectBody
>
head
head
(
key
)
:
Promise
<
R2Object
>
Parameters
key
:
string
Returns
Promise
<
R2Object
>
list
list
(
options
?
)
:
Promise
<
R2Objects
>
Parameters
Optional
options
:
R2ListOptions
Returns
Promise
<
R2Objects
>
put
put
(
key
,
value
,
options
?
)
:
Promise
<
R2Object
>
Parameters
key
:
string
value
:
string
|
ArrayBuffer
|
ArrayBufferView
|
Blob
|
ReadableStream
<
any
>
Optional
options
:
R2PutOptions
&
{
onlyIf
:
Headers
|
R2Conditional
;
}
Returns
Promise
<
R2Object
>
put
(
key
,
value
,
options
?
)
:
Promise
<
R2Object
>
Parameters
key
:
string
value
:
string
|
ArrayBuffer
|
ArrayBufferView
|
Blob
|
ReadableStream
<
any
>
Optional
options
:
R2PutOptions
Returns
Promise
<
R2Object
>
resume
Multipart
Upload
resume
Multipart
Upload
(
key
,
uploadId
)
:
R2MultipartUpload
Parameters
key
:
string
uploadId
:
string
Returns
R2MultipartUpload
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
create
Multipart
Upload
delete
get
head
list
put
resume
Multipart
Upload
@cloudflare/workers-types
Loading...