Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HTTP::Engine::InterfacUsereContributedHPTP::Engine::Interface::ServerSimple(3)

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.

perl v5.32.0			  2011HTTP::Engine::Interface::ServerSimple(3)

NAME | DESCRIPTION | ATTRIBUTES | AUTHOR | THANKS TO | SEE ALSO | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=HTTP::Engine::Interface::ServerSimple&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help