Mojo::Cookie(3pm) User Contributed Perl Documentation Mojo::Cookie(3pm)
NAME
Mojo::Cookie - HTTP 1.1 cookie base class
SYNOPSIS
use Mojo::Base 'Mojo::Cookie';
DESCRIPTION
Mojo::Cookie is an abstract base class for HTTP 1.1 cookies.
ATTRIBUTES
Mojo::Cookie implements the following attributes.
"name"
my $name = $cookie->name;
$cookie = $cookie->name('foo');
Cookie name.
"value"
my $value = $cookie->value;
$cookie = $cookie->value('/test');
Cookie value.
METHODS
Mojo::Cookie inherits all methods from Mojo::Base and implements the following new ones.
"parse"
my $cookies = $cookie->parse($string);
Parse cookies. Meant to be overloaded in a subclass.
"to_string"
my $string = $cookie->to_string;
Render cookie. Meant to be overloaded in a subclass.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Cookie(3pm)