use URI;
use constant PI_URL => 'https://public-inbox.org/';
+sub close {}
+
sub new {
my ($class, $ctx, $cb) = @_;
- bless { nr => 0, cb => $cb, ctx => $ctx }, $class;
+ bless { nr => 0, cb => $cb || *close, ctx => $ctx }, $class;
}
sub response {
delete $self->{cb} ? _html_end($self) : undef;
}
-sub close {}
-
1;