AddResponseHeader class
Adds the response header to the response of this web request. As multiple response headers may share the same name, you need to first remove and then add a new response header in order to replace one.
class AddResponseHeader extends ChromeObject { AddResponseHeader({String name, String value}) { if (name != null) this.name = name; if (value != null) this.value = value; } AddResponseHeader.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy); /** * HTTP response header name. */ String get name => jsProxy['name']; set name(String value) => jsProxy['name'] = value; /** * HTTP response header value. */ String get value => jsProxy['value']; set value(String value) => jsProxy['value'] = value; }
Extends
ChromeObject > AddResponseHeader
Constructors
new AddResponseHeader({String name, String value}) #
Create a new instance of a ChromeObject
, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
AddResponseHeader({String name, String value}) { if (name != null) this.name = name; if (value != null) this.value = value; }
new AddResponseHeader.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject
, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
AddResponseHeader.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
String name #
HTTP response header name.
String get name => jsProxy['name'];
set name(String value) => jsProxy['name'] = value;
String value #
HTTP response header value.
String get value => jsProxy['value'];
set value(String value) => jsProxy['value'] = value;
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();