The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MVC::Neaf::Request::Apache2 - Apache2 (mod_perl) driver for Not Even A Framework.

DESCRIPTION

Apache2 request that will invoke MVC::Neaf core functions from under mod_perl.

Much to the author's disgrace, this module currently uses BOTH Apache2::RequestRec and Apache2::Request from libapreq.

SYNOPSIS

The following apache configuration should work with this module:

    LoadModule perl_module        modules/mod_perl.so
        PerlSwitches -I[% YOUR_LIB_DIRECTORY %]
    LoadModule apreq_module       [% modules %]/mod_apreq2.so

    # later...
    PerlModule MVC::Neaf::Request::Apache2
    PerlPostConfigRequire [% YOUR_APPLICATION %]
    <Location /[% SOME_URL_PREFIX %]>
        SetHandler perl-script
        PerlResponseHandler MVC::Neaf::Request::Apache2
    </Location>

METHODS

do_get_client_ip

do_get_http_version

do_get_scheme

do_get_hostname

do_get_port()

do_get_method()

do_get_path()

do_get_params()

do_get_param_as_array

do_get_header_in()

do_get_upload( "name" )

Convert apache upload object into MCV::Neaf::Upload.

do_get_body

do_reply( $status, $content )

do_write( $data )

Write to socket if async content serving is in use.

handler( $apache_request )

A valid Apache2/mod_perl handler.

This invokes MCV::Neaf->handle_request when called.

Unfortunately, libapreq (in addition to mod_perl) is required currently.

failed_startup()

If Apache modules failed to load on startup, report error here.

This is done so because adding Apache2::* as dependencies would impose a HUGE headache on PSGI users.

Ideally, this module should be mover out of the repository altogether.