Author: stas Date: Thu Dec 2 16:48:15 2004 New Revision: 109608 URL: http://svn.apache.org/viewcvs?view=rev&rev=109608 Log: add some white space
Modified: perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod Modified: perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod Url: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod?view=diff&rev=109608&p1=perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod&r1=109607&p2=perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod&r2=109608 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod Thu Dec 2 16:48:15 2004 @@ -121,6 +121,8 @@ =head1 Goodies Toolkit + + =head2 Environment Variables mod_perl sets the following environment variables: @@ -165,6 +167,11 @@ Any of these environment variables can be accessed via C<%ENV>. + + + + + =head2 Threaded MPM or not? If the code needs to behave differently depending on whether it's @@ -184,6 +191,10 @@ This code prints the current thread id if running under a threaded MPM, otherwise it prints the process id. + + + + =head2 Writing MPM-specific Code If you write a CPAN module it's a bad idea to write code that won't @@ -210,8 +221,13 @@ } + + + =head1 Code Developing Nuances + + =head2 Auto-Reloading Modified Modules with Apache::Reload META: need to port Apache::Reload notes from the guide here. but the @@ -266,13 +282,23 @@ Refer to the I<perllexwarn> manpage for more information. + + + =head1 Integration with Apache Issues In the following sections we discuss the specifics of Apache behavior relevant to mod_perl developers. + + + + =head2 HTTP Response Headers + + + =head3 Generating HTTP Response Headers The best approach for generating HTTP response headers is by using the @@ -362,6 +388,8 @@ + + =head3 Forcing HTTP Response Headers Out Apache 2.0 doesn't provide a method to force HTTP response headers @@ -398,6 +426,7 @@ + =head2 Sending HTTP Response Body In mod_perl 2.0 a response body can be sent only during the response @@ -411,6 +440,7 @@ + =head1 Perl Specifics in the mod_perl Environment In the following sections we discuss the specifics of Perl behavior @@ -524,6 +554,9 @@ at arbitrary times. + + + =head2 Request-localized Globals mod_perl 2.0 provides two types of C<SetHandler> handlers: @@ -551,6 +584,8 @@ + + =head2 C<exit> In the normal Perl code exit() is used to stop the program flow and @@ -583,6 +618,8 @@ =head1 C<ModPerl::Registry> Handlers Family + + =head2 A Look Behind the Scenes If you have a CGI script F<test.pl>: @@ -619,6 +656,8 @@ + + =head2 Getting the C<$r> Object As explained in L<A Look Behind the Scenes|/A_Look_Behind_the_Scenes> @@ -665,6 +704,9 @@ The following sections discuss threading issues when running mod_perl under a threaded MPM. + + + =head2 Thread-environment Issues The "only" thing you have to worry about your code is that it's @@ -696,6 +738,8 @@ (I<http://perldoc.com/perl5.8.0/pod/perlthrtut.html>) manpage. + + =head2 Deploying Threads This is actually quite unrelated to mod_perl 2.0. You don't have to @@ -715,6 +759,8 @@ discussed. I<http://www.perl.com/lpt/a/2002/06/11/threads.html>. + + =head2 Shared Variables Global variables are only global to the interpreter in which they are @@ -725,6 +771,11 @@ using the I<shared> attribute when creating them. This feature is documented in the I<threads::shared> (I<http://search.cpan.org/search?query=threads%3A%3Ashared>) manpage. + + + + + =head1 Maintainers --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]