Dart Documentationchrome.declarativeWebRequestAddResponseCookie

AddResponseCookie class

Adds a cookie to the response or overrides a cookie, in case another cookie of the same name exists already. Note that it is preferred to use the Cookies API because this is computationally less expensive.

class AddResponseCookie extends ChromeObject {
 AddResponseCookie({ResponseCookie cookie}) {
   if (cookie != null) this.cookie = cookie;
 }
 AddResponseCookie.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * Cookie to be added to the response. The name and value need to be
  * specified.
  */
 ResponseCookie get cookie => _createResponseCookie(jsProxy['cookie']);
 set cookie(ResponseCookie value) => jsProxy['cookie'] = jsify(value);
}

Extends

ChromeObject > AddResponseCookie

Constructors

new AddResponseCookie({ResponseCookie cookie}) #

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

docs inherited from ChromeObject
AddResponseCookie({ResponseCookie cookie}) {
 if (cookie != null) this.cookie = cookie;
}

new AddResponseCookie.fromProxy(JsObject jsProxy) #

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

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

Properties

Cookie to be added to the response. The name and value need to be specified.

ResponseCookie get cookie => _createResponseCookie(jsProxy['cookie']);
set cookie(ResponseCookie value) => jsProxy['cookie'] = jsify(value);

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

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