1Catalyst::Engine::ApachUes(e3r)Contributed Perl DocumentCaattiaolnyst::Engine::Apache(3)
2
3
4
6 Catalyst::Engine::Apache - Catalyst Apache Engines
7
9 For example Apache configurations, see the documentation for the engine
10 that corresponds to your Apache version.
11
12 "Catalyst::Engine::Apache::MP13" - mod_perl 1.3x
13
14 "Catalyst::Engine::Apache2::MP19" - mod_perl 1.99x
15
16 "Catalyst::Engine::Apache2::MP20" - mod_perl 2.x
17
19 These classes provide mod_perl support for Catalyst.
20
22 $c->engine->apache
23 Returns an "Apache", "Apache::RequestRec" or "Apache2::RequestRec"
24 object, depending on your mod_perl version. This method is also
25 available as $c->apache.
26
27 $c->engine->return
28 If you need to return something other than OK from the mod_perl
29 handler, you may set any other Apache constant in this method. You
30 should only use this method if you know what you are doing or bad
31 things may happen! For example, to return DECLINED in mod_perl 2:
32
33 use Apache2::Const -compile => qw(DECLINED);
34 $c->engine->return( Apache2::Const::DECLINED );
35
36 NOTES ABOUT LOCATIONMATCH
37 The Apache engine tries to figure out the correct base path if your app
38 is running within a LocationMatch block. For example:
39
40 <LocationMatch ^/match/(this|that)*>
41 SetHandler modperl
42 PerlResponseHandler MyApp
43 </LocationMatch>
44
45 This will correctly set the base path to '/match/this/' or
46 '/match/that/' depending on which path was used for the request.
47
48 In some cases this may not be what you want, so you can disable this
49 behavior by adding this to your configuration:
50
51 PerlSetVar CatalystDisableLocationMatch 1
52
54 This class overloads some methods from "Catalyst::Engine".
55
56 $c->engine->prepare_request($r)
57 $c->engine->prepare_connection
58 $c->engine->prepare_query_parameters
59 $c->engine->prepare_headers
60 $c->engine->prepare_path
61 $c->engine->read_chunk
62 $c->engine->finalize_body
63 $c->engine->finalize_headers
64 $c->engine->write
65
67 Catalyst Catalyst::Engine.
68
70 Sebastian Riedel, <sri@cpan.org>
71
72 Christian Hansen, <ch@ngmedia.com>
73
74 Andy Grundman, <andy@hybridized.org>
75
77 This program is free software, you can redistribute it and/or modify it
78 under the same terms as Perl itself.
79
80
81
82perl v5.12.0 2008-02-20 Catalyst::Engine::Apache(3)