DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS


       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>.

Copyright © 2000-2010 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.