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::MINIMALCGI (3)

.ds Aq ’

NAME

HTTP::Engine::MinimalCGI - fast loading, minimal HTTP::Engine::Interface

CONTENTS

SYNOPSIS



    use HTTP::Engine::MinimalCGI;

    my $engine = HTTP::Engine->new(
        interface => {
            module => MinimalCGI,
            request_handler => sub {
                my $req = shift;
                HTTP::Engine::Response->new(
                    status => 200,
                    body   => Hello, world!,
                );
            },
        },
    );
    $engine->run;



DESCRIPTION

HTTP::Engine::MinimalCGI implements a minimal version of the HTTP::Engine spec for the vanilla CGI environment. It has a very fast compile time— on par with CGI::Simple or CGI.pm— and is forward-compatible with the full HTTP::Engine spec. However, it is missing some features.

SUPPORTED METHODS



    Request
        new
        hostname
        protocol
        method
        param
        upload

    Response
        new
        header
        headers
        status
        body
        protocol
        content_length
        content_type
        cookies



WHY DO WE NEED THIS?

Some people says HTTP::Engine is too heavy on my shared hosting account. Perhaps you believe that professional web developers don’t use vanilla CGI. But newbies and small projects use shared hosting accounts and will find the performance of this solution in vanilla CGI is sufficient.

WARNINGS

<B>DO NOT LOAD FULL SPEC HTTP::Engine AND THIS MODULE IN ONE PROCESSB>. HTTP::Engine::MinimalCGI provides alternative, conflicting implementations of the HTTP::Engine, HTTP::Engine::Request, HTTP::Engine::Response namespaces.

DEPENDENCIES

CGI::Simple, HTTP::Headers::Fast, Scalar::Util

AUTHORS

tokuhirom

CONTRIBUTORS

Mark Stosberg <mark@summersault.com> - helped with the documentation.
Search for    or go to Top of page |  Section 3 |  Main Index


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

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