5 if (eval { require Apache::Request }) {
8 Test::More->import(skip_all =>"Apache::Request is not installed: $@");
12 require_ok('Apache::MVC');
13 ok($Apache::MVC::VERSION, 'defines $VERSION');
14 ok(Apache::MVC->can('ar'), 'defines an "ar" accessor');
18 # sets APACHE2 constant
19 # loads Apache::Request
20 # loads mod_perl2 modules if APACHE2
21 # otherwise, loads Apache
23 # ... sets 'ar' to new Apache::Request object
25 # ... sets path() to request URI - base URI
26 # ... calls parse_path
27 # ... calls parse_args
29 # ... calls _mod_perl_args(), to set params
30 # ... calls _mod_perl_args(), to set query
32 # ... sets get_request->content_type to r->content_type
33 # ... appends document_encoding() if content_type is text
34 # ... sets Content-Length header
35 # ... calls get_request->send_http_header unless APACHE2
36 # ... prints the request output
38 # ... catdir(document_root, location)
40 # ... returns a hash of args from get_request->param