Cookie constructor

Cookie(String name String value)

Creates a new cookie setting the name and value.

name and value must be composed of valid characters according to RFC

By default the value of httpOnly will be set to true.

Implementation

factory Cookie(String name, String value) => new _Cookie(name, value);