Dart Documentationchrome.declarativeWebRequestRequestCookie

RequestCookie class

A filter or specification of a cookie in HTTP Requests.

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

 /**
  * Name of a cookie.
  */
 String get name => jsProxy['name'];
 set name(String value) => jsProxy['name'] = value;

 /**
  * Value of a cookie, may be padded in double-quotes.
  */
 String get value => jsProxy['value'];
 set value(String value) => jsProxy['value'] = value;
}

Extends

ChromeObject > RequestCookie

Constructors

new RequestCookie({String name, String value}) #

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

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

new RequestCookie.fromProxy(JsObject jsProxy) #

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

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

Properties

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String name #

Name of a cookie.

String get name => jsProxy['name'];
set name(String value) => jsProxy['name'] = value;

String value #

Value of a cookie, may be padded in double-quotes.

String get value => jsProxy['value'];
set value(String value) => jsProxy['value'] = 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();