Subject: | wish: HTTP::Cookies should have easy access methods |
I'm using Mech for testing, and I would like an easy way to express: "Did I get back a cookie named "foo"?".
Right now it appears to do this would involve calling scan() with a callback.
I would like a high level method for cookie access to be added, similar in spirit to Mechs find_link().
So maybe for my case it would work like this:
$something = $cookie_jar->find_cookie( name => 'foo' );
And maybe "$something" should be an object for a single cookie, with several accessor methods.
This is beginning to sound like real work now. :)