Dart Documentationchrome.declarativeWebRequestRemoveRequestHeader

RemoveRequestHeader class

Removes the request header of the specified name. Do not use SetRequestHeader and RemoveRequestHeader with the same header name on the same request. Each request header name occurs only once in each request.

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

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

Extends

ChromeObject > RemoveRequestHeader

Constructors

new RemoveRequestHeader({String name}) #

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

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

new RemoveRequestHeader.fromProxy(JsObject jsProxy) #

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

docs inherited from ChromeObject
RemoveRequestHeader.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;

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();