Dart Documentationchrome.declarativeWebRequestEditResponseCookie

EditResponseCookie class

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

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

 /**
  * Filter for cookies that will be modified. All empty entries are ignored.
  */
 FilterResponseCookie get filter => _createFilterResponseCookie(jsProxy['filter']);
 set filter(FilterResponseCookie 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.
  */
 ResponseCookie get modification => _createResponseCookie(jsProxy['modification']);
 set modification(ResponseCookie value) => jsProxy['modification'] = jsify(value);
}

Extends

ChromeObject > EditResponseCookie

Constructors

new EditResponseCookie({FilterResponseCookie filter, ResponseCookie modification}) #

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

docs inherited from ChromeObject
EditResponseCookie({FilterResponseCookie filter, ResponseCookie modification}) {
 if (filter != null) this.filter = filter;
 if (modification != null) this.modification = modification;
}

new EditResponseCookie.fromProxy(JsObject jsProxy) #

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

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

Properties

FilterResponseCookie filter #

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

FilterResponseCookie get filter => _createFilterResponseCookie(jsProxy['filter']);
set filter(FilterResponseCookie value) => jsProxy['filter'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

ResponseCookie modification #

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

ResponseCookie get modification => _createResponseCookie(jsProxy['modification']);
set modification(ResponseCookie 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();