Extends
Response
Type Parameters
extends unknown
extends unknown = unknown
Properties
body
MDN Referencereadonlybody:ReadableStream<Uint8Array<ArrayBuffer>> |null
Inherited from
Response.body
bodyUsed
MDN ReferencereadonlybodyUsed:boolean
Inherited from
Response.bodyUsed
data
data: D
error
error: E
headers
Thereadonlyheaders:Headers
headers read-only property of the with the response.
MDN Reference
Inherited from
Response.headers
ok
Thereadonlyok:boolean
ok read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
MDN Reference
Inherited from
Response.ok
redirected
Thereadonlyredirected:boolean
redirected read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
MDN Reference
Inherited from
Response.redirected
status
Thereadonlystatus:number
status read-only property of the Response interface contains the HTTP status codes of the response.
MDN Reference
Inherited from
Response.status
statusText
ThereadonlystatusText:string
statusText read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
MDN Reference
Inherited from
Response.statusText
type
Thereadonlytype:ResponseType
type read-only property of the Response interface contains the type of the response.
MDN Reference
Inherited from
Response.type
url
Thereadonlyurl:string
url read-only property of the Response interface contains the URL of the response.
MDN Reference
Inherited from
Response.url
Methods
arrayBuffer()
arrayBuffer():MDN ReferencePromise<ArrayBuffer>
Returns
Promise<ArrayBuffer>
Inherited from
Response.arrayBuffer
blob()
blob():MDN ReferencePromise<Blob>
Returns
Promise<Blob>
Inherited from
Response.blob
bytes()
bytes():MDN ReferencePromise<Uint8Array<ArrayBuffer>>
Returns
Promise<Uint8Array<ArrayBuffer>>
Inherited from
Response.bytes
clone()
clone(): Response
The clone() method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
MDN Reference
Returns
Response
Inherited from
Response.clone
formData()
formData():MDN ReferencePromise<FormData>
Returns
Promise<FormData>
Inherited from
Response.formData
json()
json():MDN ReferencePromise<any>
Returns
Promise<any>
Inherited from
Response.json
text()
text():MDN ReferencePromise<string>
Returns
Promise<string>
Inherited from
Response.text