elemental2.dom.Headers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
The newest version!
package elemental2.dom;
import elemental2.core.JsIterator;
import elemental2.core.JsIterable;
import jsinterop.base.JsPropertyMap;
import elemental2.core.JsArray;
import jsinterop.base.Js;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.core.JsIteratorIterable;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class Headers implements JsIterable>{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorHeadersInitUnionType{
@JsOverlay
static Headers.ConstructorHeadersInitUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default Headers asHeaders(){
return Js.cast(this);
}
@JsOverlay
default JsArray> asJsArray(){
return Js.cast(this);
}
@JsOverlay
default JsPropertyMap asJsPropertyMap(){
return Js.cast(this);
}
@JsOverlay
default boolean isHeaders(){
return (Object)this instanceof Headers;
}
@JsOverlay
default boolean isJsArray(){
return (Object)this instanceof JsArray;
}
}
public Headers(){}
public Headers(Headers.ConstructorHeadersInitUnionType headersInit){}
public Headers(Headers headersInit){}
public Headers(JsArray> headersInit){}
public Headers(JsPropertyMap headersInit){}
public Headers(String[][] headersInit){}
public native void append(String name,String value);
public native void delete(String name);
public native JsIteratorIterable> entries();
public native String get(String name);
public native JsArray getAll(String name);
public native boolean has(String name);
public native JsIteratorIterable keys();
public native void set(String name,String value);
public native JsIterator values();
}