Permalink
Browse files

support server_ready callback

  • Loading branch information...
1 parent 8bfddab commit b5dfc6bba1e46de0f91faa1d57c41b906ffa3a31 @miyagawa committed Feb 5, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Plack/Handler/AnyEvent/HTTPD.pm
@@ -23,6 +23,12 @@ sub register_service {
app => $app,
);
+ $self->{server_ready}->({
+ port => $httpd->port,
+ host => $httpd->host,
+ server_software => 'AnyEvent::HTTPD',
+ }) if $self->{server_ready};
+
$self->{_httpd} = $httpd;
}

0 comments on commit b5dfc6b

Please sign in to comment.