]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/HTTPD/Async.pm
http: support async_pass for Danga::Socket
[public-inbox.git] / lib / PublicInbox / HTTPD / Async.pm
index bedb397d0f9cdbf7b143615613fb117510549ea4..ceba738e3ce3f9793c314b16c7a3fe3733b55358 100644 (file)
@@ -21,10 +21,12 @@ sub new {
        $self;
 }
 
+sub async_pass { $_[0]->{cb} = $_[1] }
 sub event_read { $_[0]->{cb}->() }
 sub event_hup { $_[0]->{cb}->() }
 sub event_err { $_[0]->{cb}->() }
 sub sysread { shift->{sock}->sysread(@_) }
+sub getline { $_[0]->{sock}->getline };
 
 sub close {
        my $self = shift;