Mojo::CookieJar(3pm)

Mojo::CookieJar3pm

Cookie jar for http 1.1 user agents

Usage

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

Overview

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

Attributes

Mojo::CookieJar implements the following attributes.

"max_cookie_size"

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

Maximum cookie size in bytes, defaults to 4096.

Methods

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.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From libmojolicious-perl 2.98+dfsg-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.