1Mojo::Cookie(3)       User Contributed Perl Documentation      Mojo::Cookie(3)
2
3
4

NAME

6       Mojo::Cookie - HTTP 1.1 Cookie Base Class
7

SYNOPSIS

9           use base 'Mojo::Cookie';
10

DESCRIPTION

12       Mojo::Cookie is an abstract base class for HTTP 1.1 cookies as
13       described in RFC 2965.
14

ATTRIBUTES

16       Mojo::Cookie implements the following attributes.
17
18   "name"
19           my $name = $cookie->name;
20           $cookie  = $cookie->name('foo');
21
22       Cookie name.
23
24   "path"
25           my $path = $cookie->path;
26           $cookie  = $cookie->path('/test');
27
28       Cookie path.
29
30   "value"
31           my $value = $cookie->value;
32           $cookie   = $cookie->value('/test');
33
34       Cookie value.
35
36   "version"
37           my $version = $cookie->version;
38           $cookie     = $cookie->version(1);
39
40       Cookie version.
41

METHODS

43       Mojo::Cookie inherits all methods from Mojo::Base and implements the
44       following new ones.
45
46   "to_string"
47           my $string = $cookie->to_string;
48
49       Render cookie.
50

SEE ALSO

52       Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.
53
54
55
56perl v5.12.3                      2010-08-12                   Mojo::Cookie(3)
Impressum