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::CookieJar - CookieJar

SYNOPSIS

    use Mojo::CookieJar;
    my $jar = Mojo::CookieJar->new;

DESCRIPTION

Mojo::CookieJar is a minimalistic cookie jar for HTTP user agents.

ATTRIBUTES

Mojo::CookieJar implements the following attributes.

    my $max_cookie_size = $jar->max_cookie_size;
    $jar                = $jar->max_cookie_size(4096);

METHODS

Mojo::CookieJar inherits all methods from Mojo::Base and implements the following new ones.

add

    $jar = $jar->add(@cookies);

find

    my @cookies = $jar->find($url);