Mojo::CookieJar - Cookie jar for HTTP 1.1 user agents
use Mojo::CookieJar; my $jar = Mojo::CookieJar->new;
Mojo::CookieJar is a minimalistic and relaxed cookie jar for HTTP 1.1 user agents.
Mojo::CookieJar implements the following attributes.
max_cookie_size
my $max_cookie_size = $jar->max_cookie_size; $jar = $jar->max_cookie_size(4096);
Maximum size of cookies in bytes.
Mojo::CookieJar inherits all methods from Mojo::Base and implements the following new ones.
add
$jar = $jar->add(@cookies);
Add multiple Mojo::Cookie::Response objects to the jar.
empty
$jar->empty;
Empty the jar.
extract
$jar = $jar->extract($tx);
Extract response cookies from transaction.
find
my @cookies = $jar->find($url);
Find Mojo::Cookie::Request objects in the jar for Mojo::URL object.
inject
$jar = $jar->inject($tx);
Inject request cookies into transaction.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.