mod_perl logo perl icon
previous page: Input and Output Filterspage up: User's guidenext page: Preventive Measures for Performance Enhancement

General Handlers Issues






mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt
Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
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
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams


Table of Contents

Description

This chapter discusses issues relevant too any kind of handlers.



TOP

Handlers Communication

Apache handlers can communicate between themselves by writing and reading notes. It doesn't matter in what language the handlers were implemented as long as they can access the notes table.

For example inside a request handler we can say:

  my $r = shift;
  my $c = $r->connection;
  $c->notes->set(mod_perl => 'rules');

and then later in a mod_perl filter handler this note can be retrieved with:

  my $f = shift;
  my $c = $f->c;
  my $is = $c->notes->get("mod_perl");
  $f->print("mod_perl $is");


TOP

Maintainers

Maintainer is the person(s) you should contact with updates, corrections and patches.



TOP

Authors

Only the major authors are listed above. For contributors see the Changes file.






TOP
previous page: Input and Output Filterspage up: User's guidenext page: Preventive Measures for Performance Enhancement