Apache::FakeRequest man page on OpenServer

Man page or keyword search:  
man Server   5388 pages
apropos Keyword Search (all sections)
Output format
OpenServer logo
[printable version]

Apache::FakeRequest(3)User Contributed Perl DocumentatioApache::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 STD-
       OUT.

       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			  2007-03-30		Apache::FakeRequest(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OpenServer

List of man pages available for OpenServer

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net