Mojo::Cookie(3) User Contributed Perl Documentation Mojo::Cookie(3)NAMEMojo::Cookie - HTTP 1.1 Cookie Base Class
SYNOPSIS
use Mojo::Base 'Mojo::Cookie';
DESCRIPTIONMojo::Cookie is an abstract base class for HTTP 1.1 cookies.
ATTRIBUTESMojo::Cookie implements the following attributes.
"name"
my $name = $cookie->name;
$cookie = $cookie->name('foo');
Cookie name.
"path"
my $path = $cookie->path;
$cookie = $cookie->path('/test');
Cookie path.
"value"
my $value = $cookie->value;
$cookie = $cookie->value('/test');
Cookie value.
"version"
my $version = $cookie->version;
$cookie = $cookie->version(1);
Cookie version.
METHODSMojo::Cookie inherits all methods from Mojo::Base and implements the
following new ones.
"to_string"
my $string = $cookie->to_string;
Render cookie.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.1 2011-09-05 Mojo::Cookie(3)