stas 2003/02/17 21:33:23 Modified: src/docs/2.0/user/handlers http.pod Log: Handling HEAD Requests Revision Changes Path 1.14 +14 -0 modperl-docs/src/docs/2.0/user/handlers/http.pod Index: http.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/handlers/http.pod,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- http.pod 18 Feb 2003 04:29:41 -0000 1.13 +++ http.pod 18 Feb 2003 05:33:23 -0000 1.14 @@ -1193,6 +1193,20 @@ META: examples are needed (for now mod_perl 1.0 docs apply) +=head1 Handling HEAD Requests + +In order to avoid the overhead of sending the data to the client when +the request is of type HEAD in mod_perl 1.0 we L<used to return +early|docs::1.0::guide::porting/Generating_correct_HTTP_Headers> from +the handler: + + return OK if $r->header_only; + +This logic is no longer needed in mod_perl 2.0, because Apache 2.0 +automatically discards the response body for HEAD requests. (You can +also read the comment in for C<ap_http_header_filter()> in +I<modules/http/http_protocol.c> in the Apache 2.0 source.) + =head1 Extending HTTP Protocol Extending HTTP under mod_perl is a trivial task. Look at L<the
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]