Mojo::CookieJar - Cookie Jar For HTTP 1.1 User Agents


Mojolicious documentation  | view source Contained in the Mojolicious distribution.

Index


NAME

Top

Mojo::CookieJar - Cookie Jar For HTTP 1.1 User Agents

SYNOPSIS

Top

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

DESCRIPTION

Top

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

ATTRIBUTES

Top

Mojo::CookieJar implements the following attributes.

METHODS

Top

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

add

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

Add multiple cookies to the jar.

empty

  $jar->empty;

Empty the jar.

extract

  $jar = $jar->extract($tx);

Extract cookies from transaction.

find

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

Find cookies in the jar.

inject

  $jar = $jar->inject($tx);

Inject cookies into transaction.

SEE ALSO

Top

Mojolicious, Mojolicious::Guides, http://mojolicio.us.


Mojolicious documentation  | view source Contained in the Mojolicious distribution.