package js.html
Available on js
The Request interface of the Fetch API represents a resource request.
Documentation Request by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new(input:Request, ?init:Null<RequestInit>)new(input:String, ?init:Null<RequestInit>)Throws:
null |
DOMError |
|---|
read onlybodyUsed:Boolread onlycache:RequestCacheContains the cache mode of the request (e.g., default, reload, no-cache).
read onlycredentials:RequestCredentialsContains the credentials of the request (e.g., "omit", "same-origin", "include"). The default is "same-origin".
read onlydestination:RequestDestinationReturns a string from the RequestDestination enum describing the request's destination. This is a string indicating the type of content being requested.
read onlyheaders:HeadersContains the associated Headers object of the request.
read onlyintegrity:StringContains the subresource integrity value of the request (e.g., sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=).
read onlymethod:StringContains the request's method (GET, POST, etc.)
read onlymode:RequestModeContains the mode of the request (e.g., cors, no-cors, same-origin, navigate.)
read onlyredirect:RequestRedirectContains the mode for how redirects are handled. It may be one of follow, error, or manual.
read onlyreferrer:StringContains the referrer of the request (e.g., client).
read onlyreferrerPolicy:ReferrerPolicyContains the referrer policy of the request (e.g., no-referrer).
read onlysignal:AbortSignalread onlyurl:StringContains the URL of the request.
arrayBuffer():Promise<ArrayBuffer>Throws:
null |
DOMError |
|---|
blob():Promise<Blob>Throws:
null |
DOMError |
|---|
clone():RequestCreates a copy of the current Request object.
Throws:
null |
DOMError |
|---|
formData():Promise<FormData>Throws:
null |
DOMError |
|---|
json():Promise<Dynamic>Throws:
null |
DOMError |
|---|
text():Promise<String>Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Request.html