DOKK / manpages / debian 12 / libmojolicious-perl / Mojo::Cookie::Request.3pm.en
Mojo::Cookie::Request(3pm) User Contributed Perl Documentation Mojo::Cookie::Request(3pm)

Mojo::Cookie::Request - HTTP request cookie

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

Mojo::Cookie::Request is a container for HTTP request cookies, based on RFC 6265 <https://tools.ietf.org/html/rfc6265>.

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

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

  my $cookies = Mojo::Cookie::Request->parse('f=b; g=a');

Parse cookies.

  my $str = $cookie->to_string;

Render cookie.

Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.

2022-12-22 perl v5.36.0