books
Free Books / Computers / Practical mod_perl /

previous page: B.15.2. Apache::Clean—mod_perl Interface Into HTML::Clean
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.15.4. Apache::GzipChain—Compress HTML (or Anything) in the OutputChain

B.15.3. Apache::Filter—Alter the Output of Previous Handlers




Description

This section is from the "Practical mod_perl" book, by Stas Bekman and Eric Cholet. Also available from Amazon: Practical mod_perl

In the following configuration:

<Files ~ "*\.fltr">
    SetHandler perl-script
    PerlSetVar Filter On
    PerlHandler Filter1 Filter2 Filter3
</Files>

each of the handlers Filter1, Filter2, and Filter3 will make a call to $r->filter_input( ), which will return a file handle. For Filter1, the file handle points to the requested file. For Filter2, the file handle contains whatever Filter1 wrote to STDOUT. For Filter3, it contains whatever Filter2 wrote to STDOUT. The output of Filter3 goes directly to the browser.

Available from CPAN. See the module manpage for more information.

 

Continue to:

  • prev: B.15.2. Apache::Clean—mod_perl Interface Into HTML::Clean
  • Table of Contents
  • next: B.15.4. Apache::GzipChain—Compress HTML (or Anything) in the OutputChain

Books by Stas Bekman:















TOP
previous page: B.15.2. Apache::Clean&#8212;mod_perl Interface Into HTML::Clean
  
page up: Practical mod_perl | by Stas Bekman and Eric Cholet
  
next page: B.15.4. Apache::GzipChain&#8212;Compress HTML (or Anything) in the OutputChain

Topics

  • Animals
  • Architecture
  • Arts
  • Business
  • Computers
  • Crafts
  • Fairy Tales
  • Finance
  • Flora and Plants
  • Cooking
  • Gardening
  • Health and Healing
  • History
  • Home Improvements
  • Languages
  • New Age
  • Novels
  • Real Estate
  • Reference
  • Religion
  • Science
  • Society
  • Sports
  • Travel
  • Outdoors


Search

My Books

Headaches Begone! A Systemic Approach To Healing Your Headaches
Don't Let Your Bike Seat Ruin Your Sex Life Book

Discover

  • Answers FAQ

[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007-2021 StasoSphere.com