| Mojolicious documentation | view source | Contained in the Mojolicious distribution. |
Mojo::Cookie::Request - HTTP 1.1 Request Cookie Container
use Mojo::Cookie::Request;
my $cookie = Mojo::Cookie::Request->new;
$cookie->name('foo');
$cookie->value('bar');
print "$cookie";
Mojo::Cookie::Request is a container for HTTP 1.1 request cookies as described in RFC 2965.
Mojo::Cookie::Request inherits all attributes from Mojo::Cookie.
Mojo::Cookie::Request inherits all methods from Mojo::Cookie and implements the following new ones.
parse my $cookies = $cookie->parse('$Version=1; f=b; $Path=/');
Parse cookies.
prefixmy $prefix = $cookie->prefix;
Prefix for cookies.
to_stringmy $string = $cookie->to_string;
Render cookie.
to_string_with_prefixmy $string = $cookie->to_string_with_prefix;
Render cookie with prefix.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
| Mojolicious documentation | view source | Contained in the Mojolicious distribution. |