Name : perl-POE-Component-FastCGI
| |
Version : 0.20
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 17:02:36
|
Group : Development/Libraries/Perl
| Source RPM : perl-POE-Component-FastCGI-0.20-lp154.1.1.src.rpm
|
Size : 0.06 MB
| |
Packager : https://www_suse_com/
| |
Summary : POE FastCGI server
|
Description :
Provides a FastCGI (http://www.fastcgi.com/) server for POE.
* POE::Component::FastCGI->new([name => value], ...)
Creates a new POE session for the FastCGI server and listens on the specified port.
Parameters Auth (optional) A code reference to run when called as a FastCGI authorizer. Handlers (required) A array reference with a mapping of paths to code references or POE event names. Port (required unless Unix is set) Port number to listen on. Address (requied if Unix is set) Address to listen on. Unix (optional) Listen on UNIX socket given in Address. Session (required if you want to get POE callbacks) Into which session we should post the POE event back.
The call returns a POE session ID. This should be stored, and when application is to be terminated, a \'shutdown\' event can be posted to this session. This will terminate the server socket and free resources.
The handlers parameter should be a list of lists defining either regexps of paths to match or absolute paths to code references.
The code references will be passed one parameter, a POE::Component::FastCGI::Request object. To send a response the \'make_response\' method should be called which returns a POE::Component::FastCGI::Response object. These objects are subclasses of HTTP::Request and HTTP::Response respectively.
Example: Handlers => [ [ \'/page\' => \\&page ], [ qr!^/(\\w+)\\.html$! => sub { my $request = shift; my $response = $request->make_response; output_template($request, $response, $1); } ], ]
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-P/15.4/noarch |