The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojo::Cookie::Request - Request Cookies

SYNOPSIS

use Mojo::Cookie::Request;

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

print "$cookie";

DESCRIPTION

Mojo::Cookie::Request is a generic container for HTTP request cookies.

ATTRIBUTES

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

METHODS

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=/');

prefix

my $prefix = $cookie->prefix;

to_string

my $string = $cookie->to_string;

to_string_with_prefix

my $string = $cookie->to_string_with_prefix;