Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support server_ready callback

  • Loading branch information...
commit b5dfc6bba1e46de0f91faa1d57c41b906ffa3a31 1 parent 8bfddab
@miyagawa authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Plack/Handler/AnyEvent/HTTPD.pm
View
6 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.