Home   |   Contact Us   |   Site Map

 

 

 

  FakeRequest.pm Perldoc

 


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



 

Browse our Perldoc FAQs:

Perldoc Home

Perldoc Site Map


Previous Topics

ESISParser.pm Perldoc

ETag.pm Perldoc

ExampleP.pm Perldoc

Expat.pm Perldoc

Exporter.pm Perldoc

Exports.pm Perldoc

ExtUtils.pm Perldoc

Factory.pm Perldoc


Next Topics

FAQ.pm Perldoc

Fast.pm Perldoc

Fatal.pm Perldoc

FAT.pm Perldoc

Fcntl.pm Perldoc

fields.pm Perldoc

FileCache.pm Perldoc

FileHandle.pm Perldoc


Website Spotlight

Domain Hosting with the Leader in Innovative and Comprehensive Web Hosting Solutions, Globalnet GNP.

Reliable Domain Hosting

 

Click here to increase your web traffic insantly!


 Copyright © 1999-2005 Globalnet Promotions, LLC.   |   TheServerRoom.org Home    |   Sitemap    |   RSS News Feeds