ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



Apache::FakeRequest(3)               User Contributed Perl Documentation              Apache::FakeRequest(3)



NAME
       Apache::FakeRequest - fake request object for debugging

SYNOPSIS
           use Apache::FakeRequest;
           my $request = Apache::FakeRequest->new(method_name => 'value', ...);

DESCRIPTION
       Apache::FakeRequest is used to set up an empty Apache request object that can be used for debugging.
       The Apache::FakeRequest methods just set internal variables of the same name as the method and return
       the value of the internal variables.  Initial values for methods can be specified when the object is
       created.  The print method prints to STDOUT.

       Subroutines for Apache constants are also defined so that using Apache::Constants while debugging
       works, although the values of the constants are hard-coded rather than extracted from the Apache
       source code.

           #!/usr/bin/perl

           use Apache::FakeRequest ();
           use mymodule ();

           my $request = Apache::FakeRequest->new('get_remote_host'=>'foobar.com');
           mymodule::handler($request);

AUTHORS
       Doug MacEachern, with contributions from Andrew Ford <A.Ford@ford-mason.co.uk>.



perl v5.8.8                                      2003-10-08                           Apache::FakeRequest(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.