GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTTP::ENGINE::INTERFACE::SERVERSIMPLE (3)

.ds Aq ’

NAME

HTTP::Engine::Interface::ServerSimple - HTTP::Server::Simple interface for HTTP::Engine

CONTENTS

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTTP::ENGINE::INTERFACE::SERVERSIMPLE (3) 2011-10-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.