Typescript Library Declarations (DOM)
Interface Response
This Fetch API interface represents the response to a request.
MDN Reference
Hierarchy
Body
Response
Index
Properties
body
body
Used
headers
ok
redirected
status
status
Text
type
url
Methods
array
Buffer
blob
clone
form
Data
json
text
Properties
Readonly
body
body
:
ReadableStream
<
Uint8Array
>
MDN Reference
Readonly
body
Used
body
Used
:
boolean
MDN Reference
Readonly
headers
headers
:
Headers
MDN Reference
Readonly
ok
ok
:
boolean
MDN Reference
Readonly
redirected
redirected
:
boolean
MDN Reference
Readonly
status
status
:
number
MDN Reference
Readonly
status
Text
status
Text
:
string
MDN Reference
Readonly
type
type
:
ResponseType
MDN Reference
Readonly
url
url
:
string
MDN Reference
Methods
array
Buffer
array
Buffer
(
)
:
Promise
<
ArrayBuffer
>
MDN Reference
Returns
Promise
<
ArrayBuffer
>
blob
blob
(
)
:
Promise
<
Blob
>
MDN Reference
Returns
Promise
<
Blob
>
clone
clone
(
)
:
Response
MDN Reference
Returns
Response
form
Data
form
Data
(
)
:
Promise
<
FormData
>
MDN Reference
Returns
Promise
<
FormData
>
json
json
(
)
:
Promise
<
any
>
MDN Reference
Returns
Promise
<
any
>
text
text
(
)
:
Promise
<
string
>
MDN Reference
Returns
Promise
<
string
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
body
body
Used
headers
ok
redirected
status
status
Text
type
url
array
Buffer
blob
clone
form
Data
json
text
This Fetch API interface represents the response to a request.
MDN Reference