Preparing search index...
The search index is not available
@shopify/oxygen-workers-types
@shopify/oxygen-workers-types
Response
Interface Response
This Fetch API interface represents the response to a request.
MDN Reference
interface
Response
{
headers
:
Headers
;
ok
:
boolean
;
redirected
:
boolean
;
status
:
number
;
statusText
:
string
;
url
:
string
;
get
body
():
null
|
ReadableStream
<
any
>
;
get
bodyUsed
():
boolean
;
arrayBuffer
(
)
:
Promise
<
ArrayBuffer
>
;
blob
(
)
:
Promise
<
Blob
>
;
bytes
(
)
:
Promise
<
Uint8Array
>
;
clone
(
)
:
Response
;
formData
(
)
:
Promise
<
FormData
>
;
json
<
T
>
(
)
:
Promise
<
T
>
;
text
(
)
:
Promise
<
string
>
;
}
Hierarchy (
view full
)
Body
Response
Index
Properties
headers
ok
redirected
status
status
Text
url
Accessors
body
body
Used
Methods
array
Buffer
blob
bytes
clone
form
Data
json
text
Properties
headers
headers
:
Headers
ok
ok
:
boolean
redirected
redirected
:
boolean
status
status
:
number
status
Text
status
Text
:
string
url
url
:
string
Accessors
body
get
body
(
)
:
null
|
ReadableStream
<
any
>
Returns
null
|
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
>
bytes
bytes
(
)
:
Promise
<
Uint8Array
>
Returns
Promise
<
Uint8Array
>
clone
clone
(
)
:
Response
Returns
Response
form
Data
form
Data
(
)
:
Promise
<
FormData
>
Returns
Promise
<
FormData
>
json
json
<
T
>
(
)
:
Promise
<
T
>
Type Parameters
T
Returns
Promise
<
T
>
text
text
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
headers
ok
redirected
status
status
Text
url
Accessors
body
body
Used
Methods
array
Buffer
blob
bytes
clone
form
Data
json
text
@shopify/oxygen-workers-types
Loading...
This Fetch API interface represents the response to a request.
MDN Reference