Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

apache::compat(1) [redhat man page]

COMPAT(1)						User Contributed Perl Documentation						 COMPAT(1)

NAME
Apache::compat -- 1.0 backward compatibility functions deprecated in 2.0 SYNOPSIS
use Apache::compat; DESCRIPTION
"Apache::compat" provides mod_perl 1.0 compatibility layer. It includes most of the functions that are deprecated in mod_perl 2.0. If your code uses any of these functions you should just load this module at the server startup, and chances are that everything should work as it did in 1.0. However, certain functionality is not optimized and therefore it's the best to try to port your code not to use deprecated functions and stop using the compatibility layer. API
META: complete Function arguments (if any) and return values are shown in the function's synopsis. o $r->header_in() $r->header_in( $header_name, [$value] ) Return the value of a client header: $ct = $r->header_in($key); Set or modify the value of a client header: $r->header_in($key, $val); o $r->header_out() $r->header_out( $header, $value ) Return the value of a response header: $ct = $r->header_out($key); Set or modify the value of a response header: $r->header_out($key, $val); You should not define any "Content-XXX" headers by calling this method, because these headers use their own specific methods. o perl v5.8.0 2002-06-16 COMPAT(1)

Check Out this Related Man Page

REQUESTREC(1)						User Contributed Perl Documentation					     REQUESTREC(1)

NAME
Apache::RequestRec -- A Perl API for Apache request object SYNOPSIS
use Apache::RequestRec; sub handler{ my $r = shift; my $s = $r->server; my $dir_config = $r->dir_config; ... } DESCRIPTION
"Apache::RequestRec" provides the Perl API for Apache request object. API
Function arguments (if any) and return values are shown in the function's synopsis. o server() $s = $r->server; Gets the "Apache::Server" object for the server the request $r is running under. o dir_config() dir_config() provides an interface for the per-directory variable specified by the "PerlSetVar" and "PerlAddVar" directives, and also can be manipulated via the "APR::Table" methods. The keys are case-insensitive. $apr_table = $r->dir_config(); dir_config() called in a scalar context without the $key argument returns a HASH reference blessed into the APR::Table class. This object can be manipulated via the APR::Table methods. For available methods see APR::Table. @values = $r->dir_config($key); If the $key argument is passed in the list context a list of all matching values will be returned. This method is ineffective for big tables, as it does a linear search of the table. Thefore avoid using this way of calling dir_config() unless you know that there could be more than one value for the wanted key and all the values are wanted. $value = $r->dir_config($key); If the $key argument is passed in the scalar context only a single value will be returned. Since the table preserves the insertion order, if there is more than one value for the same key, the oldest value assosiated with the desired key is returned. Calling in the scalar context is also much faster, as it'll stop searching the table as soon as the first match happens. $r->dir_config($key => $val); If the $key and the $val arguments are used, the set() operation will happen: all existing values associated with the key $key (and the key itself) will be deleted and $value will be placed instead. $r->dir_config($key => undef); If $val is undef the unset() operation will happen: all existing values associated with the key $key (and the key itself) will be deleted. o perl v5.8.0 2002-05-19 REQUESTREC(1)
Man Page