
Mojo::Cookie - Cookie Base Class

use base 'Mojo::Cookie';

Mojo::Cookie is a cookie base class.

Mojo::Cookie implements the following attributes.
name my $name = $cookie->name;
$cookie = $cookie->name('foo');
path my $path = $cookie->path;
$cookie = $cookie->path('/test');
value my $value = $cookie->value;
$cookie = $cookie->value('/test');
version my $version = $cookie->version;
$cookie = $cookie->version(1);

Mojo::Cookie inherits all methods from Mojo::Base and implements the following new ones.
to_stringmy $string = $cookie->to_string;