Library Documentation
NPM
GitHub
Preparing search index...
The search index is not available
Amplify JS API Documentation
Amplify JS API Documentation
aws-amplify
utils
<Reference Types>
Response
Interface Response
This Fetch API interface represents the response to a request.
MDN Reference
interface
Response
{
body
:
null
|
ReadableStream
<
Uint8Array
<
ArrayBufferLike
>
>
;
bodyUsed
:
boolean
;
headers
:
Headers
;
ok
:
boolean
;
redirected
:
boolean
;
status
:
number
;
statusText
:
string
;
type
:
ResponseType
;
url
:
string
;
arrayBuffer
(
)
:
Promise
<
ArrayBuffer
>
;
blob
(
)
:
Promise
<
Blob
>
;
bytes
(
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
clone
(
)
:
Response
;
formData
(
)
:
Promise
<
FormData
>
;
json
(
)
:
Promise
<
any
>
;
text
(
)
:
Promise
<
string
>
;
}
Hierarchy (
view full
)
Body
Response
Index
Properties
body
body
Used
headers
ok
redirected
status
status
Text
type
url
Methods
array
Buffer
blob
bytes
clone
form
Data
json
text
Properties
Readonly
body
body
:
null
|
ReadableStream
<
Uint8Array
<
ArrayBufferLike
>
>
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
>
bytes
bytes
(
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
MDN Reference
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
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
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
body
body
Used
headers
ok
redirected
status
status
Text
type
url
array
Buffer
blob
bytes
clone
form
Data
json
text
Amplify JS API Documentation
aws-amplify
@aws-amplify
geo
interactions
predictions
pubsub
adapter-nextjs
datastore-storage-adapter
This Fetch API interface represents the response to a request.
MDN Reference