stas        2004/03/02 12:45:29

  Modified:    src/docs/2.0/api/Apache RequestRec.pod
  Log:
  add the missing content_type entry
  
  Revision  Changes    Path
  1.12      +33 -0     modperl-docs/src/docs/2.0/api/Apache/RequestRec.pod
  
  Index: RequestRec.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/RequestRec.pod,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -u -r1.11 -r1.12
  --- RequestRec.pod    2 Mar 2004 03:47:23 -0000       1.11
  +++ RequestRec.pod    2 Mar 2004 20:45:29 -0000       1.12
  @@ -714,6 +714,39 @@
   
   
   
  +=head2 C<content_type>
  +
  +Get/set the HTTP response I<Content-type> header value.
  +
  +  my $content_type = $r->content_type();
  +  my $content_type = $r->content_type($new_content_type);
  +
  +=over 4
  +
  +=item arg1: C<$r> 
(C<L<Apache::RequestRec|docs::2.0::api::Apache::RequestRec>>)
  +
  +=item arg2 opt: C<$new_content_type> (MIME type/string)
  +
  +Assign a new HTTP response content-type. It will affect the response
  +only if HTTP headers weren't sent yet.
  +
  +=item ret: C<$content_type>
  +
  +The current content-type value.
  +
  +=item since 1.99_10
  +
  +=back
  +
  +For example, set the C<Content-type> header to I<text/plain>.
  +
  +  $r->content_type('text/plain');
  +
  +If you set this header via the
  +C<L<headers_in|docs::2.0::api::Apache::RequestRec/C_headers_in_>>
  +table directly, it will be ignored by Apache. So do not do that.
  +
  +
   =head2 C<content_encoding>
   
   META: Autogenerated - needs to be reviewed/completed
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to