perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/user/handlers handlers.pod
Date Wed, 14 Aug 2002 14:01:43 GMT
stas        2002/08/14 07:01:43

  Modified:    src/docs/2.0/user/handlers handlers.pod
  Log:
  Altering the Content-Type Header in the request filter
  
  Revision  Changes    Path
  1.11      +18 -0     modperl-docs/src/docs/2.0/user/handlers/handlers.pod
  
  Index: handlers.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/handlers/handlers.pod,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- handlers.pod	14 Aug 2002 09:29:47 -0000	1.10
  +++ handlers.pod	14 Aug 2002 14:01:43 -0000	1.11
  @@ -1587,6 +1587,24 @@
   of the new bucket brigade and break the loop. Finally we pass the
   created brigade with modified data to the next filter and return.
   
  +=head2 Filter Tips
  +
  +Various tips to use in filters.
  +
  +=head3 Altering the Content-Type
  +
  +Let's say that you want to modify the C<Content-Type> header in the
  +request output filter:
  +
  +  sub handler : FilterRequestHandler {
  +      my $filter = shift;
  +      ...
  +      $filter->r->content_type("text/html; charset=$charset");
  +      ...
  +
  +Request filters have an access to the request object, so we simply
  +modify it.
  +
   
   =head1 Handler (Hook) Types
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message