HTTP::Engine::Interface::ServerSimple - HTTP::Server::Simple interface for HTTP::Engine
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.
User-overridable method. If you set it to a Net::Server subclass, that subclass is used for the HTTP::Server::Simple.
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;
Tokuhiro Matsuno(cpan:tokuhirom)
obra++
HTTP::Server::Simple, HTTP::Engine
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Engine
CPAN shell
perl -MCPAN -e shell install HTTP::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.