NAME

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

WARNING

This module is DEPRECATED and will be removed in Neaf 0.30.

Use Plack::Handler::Apache2 instead.

SYNOPSIS

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

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.

LICENSE AND COPYRIGHT

This module is part of MVC::Neaf suite.

Copyright 2016-2023 Konstantin S. Uvarin khedin@cpan.org.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.