HTTP-Tiny-SPDY
view release on metacpan or search on metacpan
t/http_tiny/BrokenCookieJar.pm view on Meta::CPAN
package t::http_tiny::BrokenCookieJar;
use strict;
use warnings;
sub new {
my $class = shift;
return bless {} => $class;
}
package t::http_tiny::BrokenCookieJar2;
use strict;
use warnings;
sub new {
my $class = shift;
return bless {} => $class;
}
sub add {
}
1;
t/http_tiny/SimpleCookieJar.pm view on Meta::CPAN
package t::http_tiny::SimpleCookieJar;
use strict;
use warnings;
sub new {
my $class = shift;
return bless {} => $class;
}
sub add {
my ($self, $url, $cookie) = @_;
my ($kv) = split qr/;/, $cookie;
my ($k, $v) = split qr/\s*=\s*/, $kv, 2;
$self->{$url}{$k} = $v;
}
( run in 0.423 second using v1.01-cache-2.11-cpan-65fba6d93b7 )