package js.html
Available on jsThe
Headersinterface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. AHeadersobject has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods likeappend()(see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.Documentation Headers by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (?init:EitherType<Headers, EitherType<Array<Array<String>>, Dynamic>>)Throws:
null |
DOMError |
|---|
append (name:String, value:String):VoidThrows:
null |
DOMError |
|---|
delete_ (name:String):VoidThrows:
null |
DOMError |
|---|
entries ():HeadersIteratorThrows:
null |
DOMError |
|---|
forEach (callback:Dynamic, ?thisArg:Dynamic):VoidThrows:
null |
DOMError |
|---|
get (name:String):StringThrows:
null |
DOMError |
|---|
getAll (name:String):Array<String>Throws:
null |
DOMError |
|---|
has (name:String):BoolThrows:
null |
DOMError |
|---|
keys ():HeadersIteratorThrows:
null |
DOMError |
|---|
set (name:String, value:String):VoidThrows:
null |
DOMError |
|---|
values ():HeadersIteratorThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Headers.html