NAME
HTTP::Engine::Interface::ServerSimple - HTTP::Server::Simple interface for HTTP::Engine
DESCRIPTION
HTTP::Engine::Plugin::Interface::ServerSimple is wrapper for HTTP::Server::Simple.
HTTP::Server::Simple is flexible web server.And it can use Net::Server, so you can make it preforking or using Coro.
ATTRIBUTES
- host
- port
- net_server
-
User-overridable method. If you set it to a Net::Server subclass, that subclass is used for the HTTP::Server::Simple.
- net_server_configure
-
Any arguments passed to this will be passed on to the underlying Net::Server implementation.
# SYNOPSIS my $engine = HTTP::Engine->new( interface => { module => 'ServerSimple', args => { host => 'localhost', port => 1978, net_server => 'Net::Server::PreForkSimple', net_server_configure => { max_servers => 5, max_requests => 100, }, }, request_handler => 'main::handle_request',# or CODE ref }, ); $engine->run;
AUTHOR
Tokuhiro Matsuno(cpan:tokuhirom)
THANKS TO
obra++
SEE ALSO
HTTP::Server::Simple, HTTP::Engine
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.