@shopify/oxygen-workers-types
Preparing search index...
Response
Variable Response
Response
:
{
prototype
:
Response
;
error
()
:
Response
;
json
(
any
:
any
,
maybeInit
?:
Response
|
ResponseInit
)
:
Response
;
redirect
(
url
:
string
,
status
?:
number
)
:
Response
;
new
(
body
?:
null
|
BodyInit
,
init
?:
ResponseInit
)
:
Response
;
}
This Fetch API interface represents the response to a request.
MDN Reference
Type declaration
new
(
body
?:
null
|
BodyInit
,
init
?:
ResponseInit
)
:
Response
Parameters
Optional
body
:
null
|
BodyInit
Optional
init
:
ResponseInit
Returns
Response
prototype
:
Response
error
:
function
error
()
:
Response
Returns
Response
json
:
function
json
(
any
:
any
,
maybeInit
?:
Response
|
ResponseInit
)
:
Response
Parameters
any
:
any
Optional
maybeInit
:
Response
|
ResponseInit
Returns
Response
redirect
:
function
redirect
(
url
:
string
,
status
?:
number
)
:
Response
Parameters
url
:
string
Optional
status
:
number
Returns
Response
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@shopify/oxygen-workers-types
Loading...
This Fetch API interface represents the response to a request.
MDN Reference