Skip to content

Commit

Permalink
a few more cookie jar examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 25, 2015
1 parent 4e934d0 commit 1d6f383
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Mojo/UserAgent/CookieJar.pm
Expand Up @@ -181,6 +181,9 @@ Add multiple L<Mojo::Cookie::Response> objects to the jar.
Return all L<Mojo::Cookie::Response> objects that are currently stored in the
jar.
# Names of all cookies
say $_->name for @{$jar->all};
=head2 empty
$jar->empty;
Expand All @@ -199,6 +202,9 @@ Extract response cookies from transaction.
Find L<Mojo::Cookie::Request> objects in the jar for L<Mojo::URL> object.
# Names of all cookies found
say $_->name for @{$jar->find(Mojo::URL->new('http://example.com/foo'))};
=head2 inject
$jar->inject(Mojo::Transaction::HTTP->new);
Expand Down

0 comments on commit 1d6f383

Please sign in to comment.