Scroll to navigation

Mojo::Cookie::Request(3pm) User Contributed Perl Documentation Mojo::Cookie::Request(3pm)

NAME

Mojo::Cookie::Request - HTTP 1.1 request cookie container

SYNOPSIS

  use Mojo::Cookie::Request;
  my $cookie = Mojo::Cookie::Request->new;
  $cookie->name('foo');
  $cookie->value('bar');
  say $cookie;

DESCRIPTION

Mojo::Cookie::Request is a container for HTTP 1.1 request cookies.

ATTRIBUTES

Mojo::Cookie::Request inherits all attributes from Mojo::Cookie.

METHODS

Mojo::Cookie::Request inherits all methods from Mojo::Cookie and implements the following new ones.

"parse"

  my $cookies = $cookie->parse('f=b; g=a');
Parse cookies.

"to_string"

  my $string = $cookie->to_string;
Render cookie.

SEE ALSO

Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
2012-09-05 perl v5.14.2