The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojo::Server::FCGI::Prefork - Prefork FastCGI Server

SYNOPSIS

    use Mojo::Server::FCGI::Prefork;
    my $prefork = Mojo::Server::FCGI::Prefork->new;
    $prefork->run;

DESCRIPTION

Mojo::Server::FCGI::Prefork is a preforking FastCGI implementation using FCGI.

ATTRIBUTES

Mojo::Server::FCGI::Prefork inherits all attributes from Mojo::Server and implements the following new ones.

fcgi

    my $fcgi = $prefork->fcgi;
    $prefork = $prefork->fcgi(Mojo::Server::FCGI->new);

    $prefork->fcgi->app_class('Mojo::HelloWorld');

listen

    my $listen = $prefork->listen
    $prefork   = $prefork->listen(':3000');
    $prefork   = $prefork->listen('/some/unix.socket');

METHODS

Mojo::Server::FCGI inherits all methods from Mojo::Server and implements the following new ones.

child

    $prefork->child;

parent

    $prefork->parent;