1Mojo::Cookie::Request(3U)ser Contributed Perl DocumentatiMoonjo::Cookie::Request(3)
2
3
4
6 Mojo::Cookie::Request - HTTP request cookie
7
9 use Mojo::Cookie::Request;
10
11 my $cookie = Mojo::Cookie::Request->new;
12 $cookie->name('foo');
13 $cookie->value('bar');
14 say "$cookie";
15
17 Mojo::Cookie::Request is a container for HTTP request cookies, based on
18 RFC 6265 <https://tools.ietf.org/html/rfc6265>.
19
21 Mojo::Cookie::Request inherits all attributes from Mojo::Cookie.
22
24 Mojo::Cookie::Request inherits all methods from Mojo::Cookie and
25 implements the following new ones.
26
27 parse
28 my $cookies = Mojo::Cookie::Request->parse('f=b; g=a');
29
30 Parse cookies.
31
32 to_string
33 my $str = $cookie->to_string;
34
35 Render cookie.
36
38 Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
39
40
41
42perl v5.34.0 2022-01-21 Mojo::Cookie::Request(3)