The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTTP::Server::Simple::Bonjour - Bonjour plugin for HTTP::Server::Simple

SYNOPSIS

  package MyServer;
  # You need to put ::Bonjour first so NEXT can work properly
  use base qw( HTTP::Server::Simple::Bonjour HTTP::Server::Simple::CGI );

  sub service_name { "My awesome webserver" }

  MyServer->new->run;

DESCRIPTION

HTTP::Server::Simple::Bonjour is an HTTP::Server::Simple plugin to publish the server name and TCP port via Bonjour so anyone in the local network can discover your web server.

METHODS

service_name

This method returns the name of the webserver your server wants to advertise

service_type

This method returns the bonjour service for your application. Most HTTP servers can safely leave this untouched. Override it and return something of the form '_http._tcp' if you need to.

AUTHOR

Tatsuhiko Miyagawa <miyagawa@cpan.org>

Jesse Vincent

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

HTTP::Server::Simple Net::Rendezvous::Publish