package js.html
Available on jsThe
Requestinterface of the Fetch API represents a resource request.Documentation Request by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (input:EitherType<Request, String>, ?init:RequestInit)Throws:
null |
DOMError |
|---|
read only bodyUsed:Boolread only cache:RequestCacheContains the cache mode of the request (e.g., default, reload, no-cache).
read only credentials:RequestCredentialsContains the credentials of the request (e.g., omit, same-origin).
read only headers:HeadersContains the associated Headers object of the request.
read only method:StringContains the request's method (GET, POST, etc.)
read only mode:RequestModeContains the mode of the request (e.g., cors, no-cors, same-origin, navigate.)
read only redirect:RequestRedirectContains the mode for how redirects are handled. It may be one of follow, error, or manual.
read only referrer:StringContains the referrer of the request (e.g., client).
read only referrerPolicy:ReferrerPolicyContains the referrer policy of the request (e.g., no-referrer).
read only url:StringContains the URL of the request.
arrayBuffer ():Promise<ArrayBuffer>Throws:
null |
DOMError |
|---|
blob ():Promise<Blob>Throws:
null |
DOMError |
|---|
clone ():RequestThrows:
null |
DOMError |
|---|
formData ():Promise<FormData>Throws:
null |
DOMError |
|---|
json ():Promise<Dynamic>Throws:
null |
DOMError |
|---|
text ():Promise<String>Throws:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Request.html