OpenResty::Server - Standalone server based on HTTP::Server::Simple for OpenResty


OpenResty documentation Contained in the OpenResty distribution.

Index


Code Index:

NAME

Top

OpenResty::Server - Standalone server based on HTTP::Server::Simple for OpenResty

INHERITANCE

Top

    OpenResty::Server
        ISA HTTP::Server::Simple::CGI

DESCRIPTION

Top

AUTHOR

Top

Agent Zhang (agentzh) <agentzh@yahoo.cn>.

SEE ALSO

Top

openresty, HTTP::Server::Simple::CGI, OpenResty.


OpenResty documentation Contained in the OpenResty distribution.

package OpenResty::Server;

use strict;
use warnings;
use base qw(HTTP::Server::Simple::CGI);

our $IsRunning = 0;

sub handle_request {
    my ($self, $cgi) = @_;
    $IsRunning = 1;
    OpenResty::Dispatcher->process_request($cgi);
}

#sub net_server { "Net::Server::PreFork" }

1;
__END__