logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Mojo::Cookie::Request - HTTP request cookie

Attributes

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

Description

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

Methods

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

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

       Parse cookies.

   to_string
         my $str = $cookie->to_string;

       Render cookie.

Name

       Mojo::Cookie::Request - HTTP request cookie

See Also

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

perl v5.40.0                                       2024-12-07                         Mojo::Cookie::Request(3pm)

Synopsis

         use Mojo::Cookie::Request;

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

See Also