NAME

Apache::RequestUtil -- Methods for work with Apache::Request object

SYNOPSIS

use Apache::RequestUtil;

DESCRIPTION

Apache::RequestUtil provides the Perl API for Apache request object.

META: complete

API

Function arguments (if any) and return values are shown in the function's synopsis.

FUNCTIONS

* Apache->request()

METHODS

new()

get_server_name()

get_server_port()

dir_config()

get_status_line()

is_initial_req()

method_register()

add_config()

location()

location_merge()

no_cache()

pnotes()

set_basic_credentials()

as_string()

push_handlers()

$r->push_handlers(PerlResponseHandler => \&handler);
$r->push_handlers(PerlResponseHandler => [\&handler, \&handler2]);

# XXX: not implemented yet
$r->push_handlers(PerlResponseHandler => sub {...});

add_handlers()

get_handlers()

slurp_filename()

my $ref_content = $r->slurp_filename([$tainted]);

Return a reference to contents of $r->filename.

By default the returned data is tainted (if run under -T). If an optional $tainted flag is set to zero, the data will be marked as non-tainted. Do not set this flag to zero unless you know what you are doing, you may create a security hole in your program if you do. For more information see the perlsec manpage. If you wonder why this option is available, it is used internally by the ModPerl::Registry handler and friends, because the CGI scripts that it reads are considered safe (you could just as well require() them).