Provided by: libmojolicious-perl_4.63+dfsg-1_all bug

NAME

       Mojo::Cookie - HTTP cookie base class

SYNOPSIS

         package Mojo::Cookie::MyCookie;
         use Mojo::Base 'Mojo::Cookie';

         sub parse     {...}
         sub to_string {...}

DESCRIPTION

       Mojo::Cookie is an abstract base class for HTTP cookies as described in RFC 6265.

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($str);

       Parse cookies. Meant to be overloaded in a subclass.

   to_string
         my $str = $cookie->to_string;
         my $str = "$cookie";

       Render cookie. Meant to be overloaded in a subclass.

SEE ALSO

       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.