Dart Documentationchrome.declarativeWebRequestHeaderFilter

HeaderFilter class

Filters request headers for various criteria. Multiple criteria are evaluated as a conjunction.

class HeaderFilter extends ChromeObject {
 HeaderFilter({String namePrefix, String nameSuffix, var nameContains, String nameEquals, String valuePrefix, String valueSuffix, var valueContains, String valueEquals}) {
   if (namePrefix != null) this.namePrefix = namePrefix;
   if (nameSuffix != null) this.nameSuffix = nameSuffix;
   if (nameContains != null) this.nameContains = nameContains;
   if (nameEquals != null) this.nameEquals = nameEquals;
   if (valuePrefix != null) this.valuePrefix = valuePrefix;
   if (valueSuffix != null) this.valueSuffix = valueSuffix;
   if (valueContains != null) this.valueContains = valueContains;
   if (valueEquals != null) this.valueEquals = valueEquals;
 }
 HeaderFilter.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Matches if the header name starts with the specified string.
  */
 String get namePrefix => jsProxy['namePrefix'];
 set namePrefix(String value) => jsProxy['namePrefix'] = value;

 /**
  * Matches if the header name ends with the specified string.
  */
 String get nameSuffix => jsProxy['nameSuffix'];
 set nameSuffix(String value) => jsProxy['nameSuffix'] = value;

 /**
  * Matches if the header name contains all of the specified strings.
  */
 dynamic get nameContains => jsProxy['nameContains'];
 set nameContains(var value) => jsProxy['nameContains'] = jsify(value);

 /**
  * Matches if the header name is equal to the specified string.
  */
 String get nameEquals => jsProxy['nameEquals'];
 set nameEquals(String value) => jsProxy['nameEquals'] = value;

 /**
  * Matches if the header value starts with the specified string.
  */
 String get valuePrefix => jsProxy['valuePrefix'];
 set valuePrefix(String value) => jsProxy['valuePrefix'] = value;

 /**
  * Matches if the header value ends with the specified string.
  */
 String get valueSuffix => jsProxy['valueSuffix'];
 set valueSuffix(String value) => jsProxy['valueSuffix'] = value;

 /**
  * Matches if the header value contains all of the specified strings.
  */
 dynamic get valueContains => jsProxy['valueContains'];
 set valueContains(var value) => jsProxy['valueContains'] = jsify(value);

 /**
  * Matches if the header value is equal to the specified string.
  */
 String get valueEquals => jsProxy['valueEquals'];
 set valueEquals(String value) => jsProxy['valueEquals'] = value;
}

Extends

ChromeObject > HeaderFilter

Constructors

new HeaderFilter({String namePrefix, String nameSuffix, nameContains, String nameEquals, String valuePrefix, String valueSuffix, valueContains, String valueEquals}) #

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

docs inherited from ChromeObject
HeaderFilter({String namePrefix, String nameSuffix, var nameContains, String nameEquals, String valuePrefix, String valueSuffix, var valueContains, String valueEquals}) {
 if (namePrefix != null) this.namePrefix = namePrefix;
 if (nameSuffix != null) this.nameSuffix = nameSuffix;
 if (nameContains != null) this.nameContains = nameContains;
 if (nameEquals != null) this.nameEquals = nameEquals;
 if (valuePrefix != null) this.valuePrefix = valuePrefix;
 if (valueSuffix != null) this.valueSuffix = valueSuffix;
 if (valueContains != null) this.valueContains = valueContains;
 if (valueEquals != null) this.valueEquals = valueEquals;
}

new HeaderFilter.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

var nameContains #

Matches if the header name contains all of the specified strings.

dynamic get nameContains => jsProxy['nameContains'];
set nameContains(var value) => jsProxy['nameContains'] = jsify(value);

String nameEquals #

Matches if the header name is equal to the specified string.

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

String namePrefix #

Matches if the header name starts with the specified string.

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

String nameSuffix #

Matches if the header name ends with the specified string.

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

var valueContains #

Matches if the header value contains all of the specified strings.

dynamic get valueContains => jsProxy['valueContains'];
set valueContains(var value) => jsProxy['valueContains'] = jsify(value);

String valueEquals #

Matches if the header value is equal to the specified string.

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

String valuePrefix #

Matches if the header value starts with the specified string.

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

String valueSuffix #

Matches if the header value ends with the specified string.

String get valueSuffix => jsProxy['valueSuffix'];
set valueSuffix(String value) => jsProxy['valueSuffix'] = 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();