1Mojo::Cookie::Request(3U)ser Contributed Perl DocumentatiMoonjo::Cookie::Request(3)
2
3
4
6 Mojo::Cookie::Request - HTTP 1.1 Request Cookie Container
7
9 use Mojo::Cookie::Request;
10
11 my $cookie = Mojo::Cookie::Request->new;
12 $cookie->name('foo');
13 $cookie->value('bar');
14
15 print "$cookie";
16
18 Mojo::Cookie::Request is a container for HTTP 1.1 request cookies as
19 described in RFC 2965.
20
22 Mojo::Cookie::Request inherits all attributes from Mojo::Cookie.
23
25 Mojo::Cookie::Request inherits all methods from Mojo::Cookie and
26 implements the following new ones.
27
28 "parse"
29 my $cookies = $cookie->parse('$Version=1; f=b; $Path=/');
30
31 Parse cookies.
32
33 "prefix"
34 my $prefix = $cookie->prefix;
35
36 Prefix for cookies.
37
38 "to_string"
39 my $string = $cookie->to_string;
40
41 Render cookie.
42
43 "to_string_with_prefix"
44 my $string = $cookie->to_string_with_prefix;
45
46 Render cookie with prefix.
47
49 Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.
50
51
52
53perl v5.12.3 2010-08-12 Mojo::Cookie::Request(3)