Taro Fetch polyfill
Response
Class Response
Hierarchy (
View Summary
,
Expand
)
Body
Response
Implements
Response
Index
Constructors
constructor
Properties
body
body
Used
headers
ok
redirected
status
status
Text
type
url
Methods
array
Buffer
blob
bytes
clone
form
Data
json
text
Constructors
constructor
new
Response
(
body
?:
any
,
init
?:
ResponseInit
)
:
Response
Parameters
Optional
body
:
any
Optional
init
:
ResponseInit
Returns
Response
Properties
body
body
:
ReadableStream
<
Uint8Array
<
ArrayBufferLike
>
>
= null
MDN Reference
body
Used
bodyUsed
:
boolean
= false
MDN Reference
headers
headers
:
Headers
MDN Reference
ok
ok
:
boolean
= false
MDN Reference
redirected
redirected
:
boolean
= false
MDN Reference
status
status
:
number
MDN Reference
status
Text
statusText
:
string
MDN Reference
type
type
:
ResponseType
= 'basic'
MDN Reference
url
url
:
string
MDN Reference
Methods
array
Buffer
arrayBuffer
()
:
Promise
<
ArrayBuffer
>
MDN Reference
Returns
Promise
<
ArrayBuffer
>
blob
blob
()
:
Promise
<
Blob
>
MDN Reference
Returns
Promise
<
Blob
>
bytes
bytes
()
:
Promise
<
Uint8Array
<
ArrayBuffer
>
>
MDN Reference
Returns
Promise
<
Uint8Array
<
ArrayBuffer
>
>
clone
clone
()
:
Response
MDN Reference
Returns
Response
form
Data
formData
()
:
Promise
<
FormData
>
Returns
Promise
<
FormData
>
Deprecated
尚未实现内部逻辑
json
json
()
:
Promise
<
any
>
MDN Reference
Returns
Promise
<
any
>
text
text
()
:
Promise
<
string
>
MDN Reference
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
body
body
Used
headers
ok
redirected
status
status
Text
type
url
Methods
array
Buffer
blob
bytes
clone
form
Data
json
text
Taro Fetch polyfill
Blob
Body
Headers
Request
Response
RequestInit
BodyInit
URLSearchParams
fetch
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R
MDN Reference