AddRequestCookie class
Adds a cookie to the request 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 AddRequestCookie extends ChromeObject {
AddRequestCookie({RequestCookie cookie}) {
if (cookie != null) this.cookie = cookie;
}
AddRequestCookie.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
/**
* Cookie to be added to the request. No field may be undefined.
*/
RequestCookie get cookie => _createRequestCookie(jsProxy['cookie']);
set cookie(RequestCookie value) => jsProxy['cookie'] = jsify(value);
}
Extends
ChromeObject > AddRequestCookie
Constructors
new AddRequestCookie({RequestCookie cookie}) #
Create a new instance of a ChromeObject, which creates and delegates to
a JsObject proxy.
docs inherited from ChromeObject
AddRequestCookie({RequestCookie cookie}) {
if (cookie != null) this.cookie = cookie;
}
new AddRequestCookie.fromProxy(JsObject jsProxy) #
Create a new instance of a ChromeObject, which delegates to the given
JsObject proxy.
docs inherited from ChromeObject
AddRequestCookie.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);
Properties
RequestCookie cookie #
Cookie to be added to the request. No field may be undefined.
RequestCookie get cookie => _createRequestCookie(jsProxy['cookie']);
set cookie(RequestCookie value) => jsProxy['cookie'] = jsify(value);
Methods
String toString() #
inherited from ChromeObject
Returns a string representation of this object.
docs inherited from Object
String toString() => jsProxy.toString();