Dart Documentationchrome.declarativeWebRequestRemoveResponseHeader

RemoveResponseHeader class

Removes all response headers of the specified names and values.

class RemoveResponseHeader extends ChromeObject {
 RemoveResponseHeader({String name, String value}) {
   if (name != null) this.name = name;
   if (value != null) this.value = value;
 }
 RemoveResponseHeader.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * HTTP request header name (case-insensitive).
  */
 String get name => jsProxy['name'];
 set name(String value) => jsProxy['name'] = value;

 /**
  * HTTP request header value (case-insensitive).
  */
 String get value => jsProxy['value'];
 set value(String value) => jsProxy['value'] = value;
}

Extends

ChromeObject > RemoveResponseHeader

Constructors

new RemoveResponseHeader({String name, String value}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
RemoveResponseHeader({String name, String value}) {
 if (name != null) this.name = name;
 if (value != null) this.value = value;
}

new RemoveResponseHeader.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
RemoveResponseHeader.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String name #

HTTP request header name (case-insensitive).

String get name => jsProxy['name'];
set name(String value) => jsProxy['name'] = value;

String value #

HTTP request header value (case-insensitive).

String get value => jsProxy['value'];
set value(String value) => jsProxy['value'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();