Cookie Interface
Representation of a cookie. For cookies received by the server as
Cookie header values only name
and value
fields will be
set. When building a cookie for the Set-Cookie header in the server
and when receiving cookies in the client as Set-Cookie headers all
fields can be used.
Constructors
Code new Cookie([String name, String value]) #
Creates a new cookie optionally setting the name and value.
Cookie([String name, String value]);
Code new Cookie.fromSetCookieValue(String value) #
Creates a new cookie by parsing a header value from a Set-Cookie header.
Cookie.fromSetCookieValue(String value);
Methods
Code String toString() #
Returns the formatted string representation of the cookie. The string representation can be used for for setting the Cookie or Set-Cookie headers
String toString();