Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 9.0

(Shrike)

Apache::compat(3pm)


COMPAT

COMPAT

NAME
SYNOPSIS
DESCRIPTION
API

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.
• $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);

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



Apache::compat(3pm)