mod_perl logo
perl icon







previous page: Apache::RequestRec -- A Perl API for Apache request objectpage up: mod_perl APIsnext page: Apache::ServerUtil -- Methods for work with Apache::Server object


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











The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern


Table of Contents

SYNOPSIS

  use Apache::RequestUtil;


TOP

DESCRIPTION

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

META: complete



TOP

API

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



TOP

FUNCTIONS



TOP

* Apache->request()



TOP

METHODS



TOP

new()



TOP

get_server_name()



TOP

get_server_port()



TOP

dir_config()



TOP

get_status_line()



TOP

is_initial_req()



TOP

method_register()



TOP

add_config()



TOP

location()



TOP

location_merge()



TOP

no_cache()



TOP

pnotes()



TOP

set_basic_credentials()



TOP

as_string()



TOP

push_handlers()

  $r->push_handlers(PerlResponseHandler => \&handler);
  $r->push_handlers(PerlResponseHandler => [\&handler, \&handler2]);
  # XXX: not implemented yet
  $r->push_handlers(PerlResponseHandler => sub {...});


TOP

add_handlers()



TOP

get_handlers()



TOP

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







TOP
previous page: Apache::RequestRec -- A Perl API for Apache request objectpage up: mod_perl APIsnext page: Apache::ServerUtil -- Methods for work with Apache::Server object