@shopify/oxygen-workers-types
Preparing search index...
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
;
type
:
"default"
|
"error"
;
url
:
string
;
get
body
()
:
null
|
ReadableStream
<
any
>
;
get
bodyUsed
()
:
boolean
;
arrayBuffer
()
:
Promise
<
ArrayBuffer
>
;
blob
()
:
Promise
<
Blob
>
;
bytes
()
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
clone
()
:
Response
;
formData
()
:
Promise
<
FormData
>
;
json
<
T
>
()
:
Promise
<
T
>
;
text
()
:
Promise
<
string
>
;
}
Hierarchy (
View Summary
)
Body
Response
Index
Properties
headers
ok
redirected
status
status
Text
type
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
statusText
:
string
type
type
:
"default"
|
"error"
url
url
:
string
Accessors
body
get
body
()
:
null
|
ReadableStream
<
any
>
Returns
null
|
ReadableStream
<
any
>
body
Used
get
bodyUsed
()
:
boolean
Returns
boolean
Methods
array
Buffer
arrayBuffer
()
:
Promise
<
ArrayBuffer
>
Returns
Promise
<
ArrayBuffer
>
blob
blob
()
:
Promise
<
Blob
>
Returns
Promise
<
Blob
>
bytes
bytes
()
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
clone
clone
()
:
Response
Returns
Response
form
Data
formData
()
:
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
type
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