package js.html
Available on jsThe
Responseinterface of the Fetch API represents the response to a request.Documentation Response by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (?body:EitherType<ArrayBuffer, EitherType<ArrayBufferView, EitherType<Blob, EitherType<FormData, EitherType<String, URLSearchParams>>>>>, ?init:ResponseInit)Throws:
null |
DOMError |
|---|
read only bodyUsed:Boolread only headers:HeadersContains the Headers object associated with the response.
read only ok:BoolContains a boolean stating whether the response was successful (status in the range 200-299) or not.
read only status:IntContains the status code of the response (e.g., 200 for a success).
read only statusText:StringContains the status message corresponding to the status code (e.g., OK for 200).
read only type:ResponseTypeContains the type of the response (e.g., basic, cors).
read only url:StringContains the URL of the response.
arrayBuffer ():Promise<ArrayBuffer>Throws:
null |
DOMError |
|---|
blob ():Promise<Blob>Throws:
null |
DOMError |
|---|
clone ():ResponseThrows:
null |
DOMError |
|---|
formData ():Promise<FormData>Throws:
null |
DOMError |
|---|
json ():Promise<Dynamic>Throws:
null |
DOMError |
|---|
text ():Promise<String>Throws:
null |
DOMError |
|---|
static error ():Response static redirect (url:String, status:Int = 302):ResponseThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Response.html