Dart Documentationchrome.declarativeWebRequestEditRequestCookie

EditRequestCookie class

Edits one or more cookies of request. Note that it is preferred to use the Cookies API because this is computationally less expensive.

class EditRequestCookie extends ChromeObject {
 EditRequestCookie({RequestCookie filter, RequestCookie modification}) {
   if (filter != null) this.filter = filter;
   if (modification != null) this.modification = modification;
 }
 EditRequestCookie.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Filter for cookies that will be modified. All empty entries are ignored.
  */
 RequestCookie get filter => _createRequestCookie(jsProxy['filter']);
 set filter(RequestCookie value) => jsProxy['filter'] = jsify(value);

 /**
  * Attributes that shall be overridden in cookies that machted the filter.
  * Attributes that are set to an empty string are removed.
  */
 RequestCookie get modification => _createRequestCookie(jsProxy['modification']);
 set modification(RequestCookie value) => jsProxy['modification'] = jsify(value);
}

Extends

ChromeObject > EditRequestCookie

Constructors

new EditRequestCookie({RequestCookie filter, RequestCookie modification}) #

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

docs inherited from ChromeObject
EditRequestCookie({RequestCookie filter, RequestCookie modification}) {
 if (filter != null) this.filter = filter;
 if (modification != null) this.modification = modification;
}

new EditRequestCookie.fromProxy(JsObject jsProxy) #

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

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

Properties

RequestCookie filter #

Filter for cookies that will be modified. All empty entries are ignored.

RequestCookie get filter => _createRequestCookie(jsProxy['filter']);
set filter(RequestCookie value) => jsProxy['filter'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

RequestCookie modification #

Attributes that shall be overridden in cookies that machted the filter. Attributes that are set to an empty string are removed.

RequestCookie get modification => _createRequestCookie(jsProxy['modification']);
set modification(RequestCookie value) => jsProxy['modification'] = jsify(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();