Dart Documentationchrome.declarativeWebRequestResponseCookie

ResponseCookie class

A specification of a cookie in HTTP Responses.

class ResponseCookie extends ChromeObject {
 ResponseCookie({String name, String value, String expires, var maxAge, String domain, String path, String secure, String httpOnly}) {
   if (name != null) this.name = name;
   if (value != null) this.value = value;
   if (expires != null) this.expires = expires;
   if (maxAge != null) this.maxAge = maxAge;
   if (domain != null) this.domain = domain;
   if (path != null) this.path = path;
   if (secure != null) this.secure = secure;
   if (httpOnly != null) this.httpOnly = httpOnly;
 }
 ResponseCookie.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;

 /**
  * Value of the Expires cookie attribute.
  */
 String get expires => jsProxy['expires'];
 set expires(String value) => jsProxy['expires'] = value;

 /**
  * Value of the Max-Age cookie attribute
  */
 dynamic get maxAge => jsProxy['maxAge'];
 set maxAge(var value) => jsProxy['maxAge'] = jsify(value);

 /**
  * Value of the Domain cookie attribute.
  */
 String get domain => jsProxy['domain'];
 set domain(String value) => jsProxy['domain'] = value;

 /**
  * Value of the Path cookie attribute.
  */
 String get path => jsProxy['path'];
 set path(String value) => jsProxy['path'] = value;

 /**
  * Existence of the Secure cookie attribute.
  */
 String get secure => jsProxy['secure'];
 set secure(String value) => jsProxy['secure'] = value;

 /**
  * Existence of the HttpOnly cookie attribute.
  */
 String get httpOnly => jsProxy['httpOnly'];
 set httpOnly(String value) => jsProxy['httpOnly'] = value;
}

Extends

ChromeObject > ResponseCookie

Constructors

new ResponseCookie({String name, String value, String expires, maxAge, String domain, String path, String secure, String httpOnly}) #

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

docs inherited from ChromeObject
ResponseCookie({String name, String value, String expires, var maxAge, String domain, String path, String secure, String httpOnly}) {
 if (name != null) this.name = name;
 if (value != null) this.value = value;
 if (expires != null) this.expires = expires;
 if (maxAge != null) this.maxAge = maxAge;
 if (domain != null) this.domain = domain;
 if (path != null) this.path = path;
 if (secure != null) this.secure = secure;
 if (httpOnly != null) this.httpOnly = httpOnly;
}

new ResponseCookie.fromProxy(JsObject jsProxy) #

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

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

Properties

String domain #

Value of the Domain cookie attribute.

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

String expires #

Value of the Expires cookie attribute.

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

String httpOnly #

Existence of the HttpOnly cookie attribute.

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

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

var maxAge #

Value of the Max-Age cookie attribute

dynamic get maxAge => jsProxy['maxAge'];
set maxAge(var value) => jsProxy['maxAge'] = jsify(value);

String name #

Name of a cookie.

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

String path #

Value of the Path cookie attribute.

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

String secure #

Existence of the Secure cookie attribute.

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