Author: geoff Date: Mon Apr 4 13:38:47 2005 New Revision: 160096 URL: http://svn.apache.org/viewcvs?view=rev&rev=160096 Log: Apache2::OK to Apache2::Const::OK and similar moves
Modified: perl/modperl/docs/trunk/src/docs/2.0/api/APR/Error.pod perl/modperl/docs/trunk/src/docs/2.0/api/APR/PerlIO.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Access.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/CmdParms.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Command.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Connection.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Const.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Filter.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/HookRun.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Log.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestIO.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestRec.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Response.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerRec.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/SubRequest.pod perl/modperl/docs/trunk/src/docs/2.0/devel/core/explained.pod perl/modperl/docs/trunk/src/docs/2.0/os/win32/config.pod perl/modperl/docs/trunk/src/docs/2.0/user/coding/coding.pod perl/modperl/docs/trunk/src/docs/2.0/user/coding/cooking.pod perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod perl/modperl/docs/trunk/src/docs/2.0/user/handlers/filters.pod perl/modperl/docs/trunk/src/docs/2.0/user/handlers/http.pod perl/modperl/docs/trunk/src/docs/2.0/user/handlers/intro.pod perl/modperl/docs/trunk/src/docs/2.0/user/handlers/protocols.pod perl/modperl/docs/trunk/src/docs/2.0/user/handlers/server.pod perl/modperl/docs/trunk/src/docs/2.0/user/intro/start_fast.pod perl/modperl/docs/trunk/src/docs/2.0/user/porting/compat.pod perl/modperl/docs/trunk/src/docs/2.0/user/porting/porting.pod Modified: perl/modperl/docs/trunk/src/docs/2.0/api/APR/Error.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/APR/Error.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/APR/Error.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/APR/Error.pod Mon Apr 4 13:38:47 2005 @@ -176,7 +176,7 @@ the code. my $rc = $c->input_filters->get_brigade($bb_in, - Apache2::MODE_GETLINE); + Apache2::Const::MODE_GETLINE); if ($rc != APR::SUCCESS && $rc != APR::EOF) { my $error = APR::Error::strerror($rc); die "get_brigade error: $rc: $error\n"; Modified: perl/modperl/docs/trunk/src/docs/2.0/api/APR/PerlIO.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/APR/PerlIO.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/APR/PerlIO.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/APR/PerlIO.pod Mon Apr 4 13:38:47 2005 @@ -17,7 +17,7 @@ # work with $fh as normal $fh close $fh; - return Apache2::OK; + return Apache2::Const::OK; } # outside mod_perl Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Access.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Access.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Access.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Access.pod Mon Apr 4 13:38:47 2005 @@ -150,9 +150,9 @@ The following applies: use Apache2::Const -compile => qw(:options); - $r->allow_options & Apache2::OPT_INDEXES; # TRUE - $r->allow_options & Apache2::OPT_SYM_LINKS; # TRUE - $r->allow_options & Apache2::OPT_EXECCGI; # FALSE + $r->allow_options & Apache2::Const::OPT_INDEXES; # TRUE + $r->allow_options & Apache2::Const::OPT_SYM_LINKS; # TRUE + $r->allow_options & Apache2::Const::OPT_EXECCGI; # FALSE @@ -191,8 +191,8 @@ The following applies: use Apache2::Const -compile => qw(:override); - $r->allow_overrides & Apache2::OR_AUTHCFG; # TRUE - $r->allow_overrides & Apache2::OR_LIMIT; # FALSE + $r->allow_overrides & Apache2::Const::OR_AUTHCFG; # TRUE + $r->allow_overrides & Apache2::Const::OR_LIMIT; # FALSE @@ -300,13 +300,13 @@ =item ret1: C<$rc> ( C<L<Apache2::Const constant|docs::2.0::api::Apache2::Const>> ) -C<Apache2::OK> if the C<$passwd> value is set (and assured a correct +C<Apache2::Const::OK> if the C<$passwd> value is set (and assured a correct value in C<L<$r-E<gt>user|docs::2.0::api::Apache2::RequestRec/C_user_>>); otherwise it returns an error code, either -C<Apache2::HTTP_INTERNAL_SERVER_ERROR> if things are really confused, -C<Apache2::HTTP_UNAUTHORIZED> if no authentication at all seemed to be -in use, or C<Apache2::DECLINED> if there was authentication, but it +C<Apache2::Const::HTTP_INTERNAL_SERVER_ERROR> if things are really confused, +C<Apache2::Const::HTTP_UNAUTHORIZED> if no authentication at all seemed to be +in use, or C<Apache2::Const::DECLINED> if there was authentication, but it wasn't C<Basic> (in which case, the caller should presumably decline as well). @@ -584,10 +584,10 @@ How the requirements must be met. One of the C<L<Apache2::Const :satisfy constants|docs::2.0::api::Apache2::Const/C__satisfy_>>: -C<L<Apache2::SATISFY_ANY|docs::2.0::api::Apache2::Const/C_Apache2::SATISFY_ANY_>>, -C<L<Apache2::SATISFY_ALL|docs::2.0::api::Apache2::Const/C_Apache2::SATISFY_ALL_>> +C<L<Apache2::Const::SATISFY_ANY|docs::2.0::api::Apache2::Const/C_Apache2::Const::SATISFY_ANY_>>, +C<L<Apache2::Const::SATISFY_ALL|docs::2.0::api::Apache2::Const/C_Apache2::Const::SATISFY_ALL_>> and -C<L<Apache2::SATISFY_NOSPEC|docs::2.0::api::Apache2::Const/C_Apache2::SATISFY_NOSPEC_>>. +C<L<Apache2::Const::SATISFY_NOSPEC|docs::2.0::api::Apache2::Const/C_Apache2::Const::SATISFY_NOSPEC_>>. =item since: 1.99_12 Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/CmdParms.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/CmdParms.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/CmdParms.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/CmdParms.pod Mon Apr 4 13:38:47 2005 @@ -30,7 +30,7 @@ $cmd = $parms->cmd; # check the current command's context - $error = $parms->check_cmd_context(Apache2::NOT_IN_LOCATION); + $error = $parms->check_cmd_context(Apache2::Const::NOT_IN_LOCATION); # this command's context $context = $parms->context; @@ -138,7 +138,7 @@ C<E<lt>LocationE<gt>> container: use Apache2::Const -compile qw(NOT_IN_LOCATION); - if (my $error = $parms->check_cmd_context(Apache2::NOT_IN_LOCATION)) { + if (my $error = $parms->check_cmd_context(Apache2::Const::NOT_IN_LOCATION)) { die "directive ... not allowed in <Location> context" } @@ -301,7 +301,7 @@ C<FileInfo> options are enabled for this command, do: use Apache2::Const -compile qw(:override); - $wanted = Apache2::OR_AUTHCFG | Apache2::OR_FILEINFO; + $wanted = Apache2::Const::OR_AUTHCFG | Apache2::Const::OR_FILEINFO; $masked = $parms->override & $wanted; unless ($wanted == $masked) { die "..."; Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Command.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Command.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Command.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Command.pod Mon Apr 4 13:38:47 2005 @@ -57,7 +57,7 @@ constant|docs::2.0::api::Apache2::Const/C__cmd_how_>> ) The flag value representing the type of this command -(i.e. C<Apache2::ITERATE>, C<Apache2::TAKE2>). +(i.e. C<Apache2::Const::ITERATE>, C<Apache2::Const::TAKE2>). =item since: 1.99_12 @@ -161,7 +161,7 @@ constant|docs::2.0::api::Apache2::Const/C__override_>> ) The bit mask representing the overrides this command is allowed in -(i.e C<Apache2::OR_ALL>/C<Apache2::ACCESS_CONF>). +(i.e C<Apache2::Const::OR_ALL>/C<Apache2::Const::ACCESS_CONF>). =item since: 1.99_12 @@ -170,8 +170,8 @@ For example: use Apache2::Const -compile => qw(:override); - $cmd->req_override() & Apache2::OR_AUTHCFG; - $cmd->req_override() & Apache2::OR_LIMIT; + $cmd->req_override() & Apache2::Const::OR_AUTHCFG; + $cmd->req_override() & Apache2::Const::OR_LIMIT; Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Connection.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Connection.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Connection.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Connection.pod Mon Apr 4 13:38:47 2005 @@ -208,32 +208,32 @@ =over -=item C<Apache2::REMOTE_DOUBLE_REV> +=item C<Apache2::Const::REMOTE_DOUBLE_REV> will always force a DNS lookup, and also force a double reverse lookup, regardless of the C<HostnameLookups> setting. The result is the (double reverse checked) hostname, or undef if any of the lookups fail. -=item C<Apache2::REMOTE_HOST> +=item C<Apache2::Const::REMOTE_HOST> returns the hostname, or C<undef> if the hostname lookup fails. It will force a DNS lookup according to the C<HostnameLookups> setting. -=item C<Apache2::REMOTE_NAME> +=item C<Apache2::Const::REMOTE_NAME> returns the hostname, or the dotted quad if the hostname lookup fails. It will force a DNS lookup according to the C<HostnameLookups> setting. -=item C<Apache2::REMOTE_NOLOOKUP> +=item C<Apache2::Const::REMOTE_NOLOOKUP> -is like C<Apache2::REMOTE_NAME> except that a DNS lookup is never +is like C<Apache2::Const::REMOTE_NAME> except that a DNS lookup is never forced. =back -Default value is C<Apache2::REMOTE_NAME>. +Default value is C<Apache2::Const::REMOTE_NAME>. =item opt arg2: C<$dir_config> ( C<L<Apache2::ConfVector object|docs::2.0::api::Apache2::ConfVector>> ) @@ -370,13 +370,13 @@ use Apache2::Const -compile => qw(:conn_keepalive); ... my $c = $r->connection; - if ($c->keepalive == Apache2::CONN_KEEPALIVE) { + if ($c->keepalive == Apache2::Const::CONN_KEEPALIVE) { # do something } - elsif ($c->keepalive == Apache2::CONN_CLOSE) { + elsif ($c->keepalive == Apache2::Const::CONN_CLOSE) { # do something else } - elsif ($c->keepalive == Apache2::CONN_UNKNOWN) { + elsif ($c->keepalive == Apache2::Const::CONN_UNKNOWN) { # do yet something else } else { Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Const.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Const.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Const.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Const.pod Mon Apr 4 13:38:47 2005 @@ -34,11 +34,11 @@ use Apache2::Const -compile => qw(FORBIDDEN OK); -makes the constants C<Apache2::FORBIDDEN> and C<Apache2::OK> available +makes the constants C<Apache2::Const::FORBIDDEN> and C<Apache2::Const::OK> available to your code, but they aren't imported. In which case you need to use a fully qualified constants, as in: - return Apache2::OK; + return Apache2::Const::OK; If you drop the argument C<-compile> and write: @@ -96,7 +96,7 @@ -=head3 C<Apache2::FLAG> +=head3 C<Apache2::Const::FLAG> One of I<On> or I<Off> (L<full description|docs::2.0::user::config::custom/C_Apache2__FLAG_>). @@ -111,7 +111,7 @@ -=head3 C<Apache2::ITERATE> +=head3 C<Apache2::Const::ITERATE> One argument, occuring multiple times (L<full description|docs::2.0::user::config::custom/C_Apache2__ITERATE_>). @@ -128,7 +128,7 @@ -=head3 C<Apache2::ITERATE2> +=head3 C<Apache2::Const::ITERATE2> Two arguments, the second occurs multiple times (L<full description|docs::2.0::user::config::custom/C_Apache2__ITERATE2_>). @@ -143,7 +143,7 @@ -=head3 C<Apache2::NO_ARGS> +=head3 C<Apache2::Const::NO_ARGS> No arguments at all (L<full description|docs::2.0::user::config::custom/C__C_Apache2__NO_ARGS_>). @@ -158,7 +158,7 @@ -=head3 C<Apache2::RAW_ARGS> +=head3 C<Apache2::Const::RAW_ARGS> The command will parse the command line itself (L<full description|docs::2.0::user::config::custom/C_Apache2__RAW_ARGS_>). @@ -173,7 +173,7 @@ -=head3 C<Apache2::TAKE1> +=head3 C<Apache2::Const::TAKE1> One argument only (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE1_>). @@ -188,7 +188,7 @@ -=head3 C<Apache2::TAKE12> +=head3 C<Apache2::Const::TAKE12> One or two arguments (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE12_>). @@ -203,7 +203,7 @@ -=head3 C<Apache2::TAKE123> +=head3 C<Apache2::Const::TAKE123> One, two or three arguments (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE123_>). @@ -218,7 +218,7 @@ -=head3 C<Apache2::TAKE13> +=head3 C<Apache2::Const::TAKE13> One or three arguments (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE13_>). @@ -233,7 +233,7 @@ -=head3 C<Apache2::TAKE2> +=head3 C<Apache2::Const::TAKE2> Two arguments (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE2_>). @@ -248,7 +248,7 @@ -=head3 C<Apache2::TAKE23> +=head3 C<Apache2::Const::TAKE23> Two or three arguments (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE23_>). @@ -263,7 +263,7 @@ -=head3 C<Apache2::TAKE3> +=head3 C<Apache2::Const::TAKE3> Three arguments (L<full description|docs::2.0::user::config::custom/C_Apache2__TAKE3_>). @@ -297,7 +297,7 @@ -=head3 C<Apache2::AUTH_REQUIRED> +=head3 C<Apache2::Const::AUTH_REQUIRED> =over @@ -309,7 +309,7 @@ -=head3 C<Apache2::DECLINED> +=head3 C<Apache2::Const::DECLINED> =over @@ -321,7 +321,7 @@ -=head3 C<Apache2::DONE> +=head3 C<Apache2::Const::DONE> =over @@ -333,7 +333,7 @@ -=head3 C<Apache2::FORBIDDEN> +=head3 C<Apache2::Const::FORBIDDEN> =over @@ -345,7 +345,7 @@ -=head3 C<Apache2::NOT_FOUND> +=head3 C<Apache2::Const::NOT_FOUND> =over @@ -357,7 +357,7 @@ -=head3 C<Apache2::OK> +=head3 C<Apache2::Const::OK> =over @@ -369,7 +369,7 @@ -=head3 C<Apache2::REDIRECT> +=head3 C<Apache2::Const::REDIRECT> =over @@ -381,7 +381,7 @@ -=head3 C<Apache2::SERVER_ERROR> +=head3 C<Apache2::Const::SERVER_ERROR> =over @@ -402,7 +402,7 @@ -=head3 C<Apache2::DECLINE_CMD> +=head3 C<Apache2::Const::DECLINE_CMD> =over @@ -427,7 +427,7 @@ -=head3 C<Apache2::CONN_CLOSE> +=head3 C<Apache2::Const::CONN_CLOSE> The connection will be closed at the end of the current HTTP request. @@ -440,7 +440,7 @@ -=head3 C<Apache2::CONN_KEEPALIVE> +=head3 C<Apache2::Const::CONN_KEEPALIVE> The connection will be kept alive at the end of the current HTTP request. @@ -454,7 +454,7 @@ -=head3 C<Apache2::CONN_UNKNOWN> +=head3 C<Apache2::Const::CONN_UNKNOWN> The connection is at an unknown state, e.g., initialized but not open yet. @@ -481,7 +481,7 @@ -=head3 C<Apache2::NOT_IN_VIRTUALHOST> +=head3 C<Apache2::Const::NOT_IN_VIRTUALHOST> The command is not in a E<lt>VirtualHostE<gt> block. @@ -493,7 +493,7 @@ -=head3 C<Apache2::NOT_IN_LIMIT> +=head3 C<Apache2::Const::NOT_IN_LIMIT> The command is not in a E<lt>LimitE<gt> block. @@ -508,7 +508,7 @@ -=head3 C<Apache2::NOT_IN_DIRECTORY> +=head3 C<Apache2::Const::NOT_IN_DIRECTORY> The command is not in a E<lt>DirectoryE<gt> block. @@ -523,7 +523,7 @@ -=head3 C<Apache2::NOT_IN_LOCATION> +=head3 C<Apache2::Const::NOT_IN_LOCATION> The command is not in a E<lt>LocationE<gt>/E<lt>LocationMatchE<gt> block. @@ -538,7 +538,7 @@ -=head3 C<Apache2::NOT_IN_FILES> +=head3 C<Apache2::Const::NOT_IN_FILES> The command is not in a E<lt>FilesE<gt>/E<lt>FilesMatchE<gt> block. @@ -554,7 +554,7 @@ -=head3 C<Apache2::NOT_IN_DIR_LOC_FILE> +=head3 C<Apache2::Const::NOT_IN_DIR_LOC_FILE> The command is not in a E<lt>FilesE<gt>/E<lt>FilesMatchE<gt>, E<lt>LocationE<gt>/E<lt>LocationMatchE<gt> or @@ -571,7 +571,7 @@ -=head3 C<Apache2::GLOBAL_ONLY> +=head3 C<Apache2::Const::GLOBAL_ONLY> The directive appears outside of any container directives. @@ -595,7 +595,7 @@ -=head3 C<Apache2::FTYPE_CONNECTION> +=head3 C<Apache2::Const::FTYPE_CONNECTION> =over @@ -607,7 +607,7 @@ -=head3 C<Apache2::FTYPE_CONTENT_SET> +=head3 C<Apache2::Const::FTYPE_CONTENT_SET> =over @@ -619,7 +619,7 @@ -=head3 C<Apache2::FTYPE_NETWORK> +=head3 C<Apache2::Const::FTYPE_NETWORK> =over @@ -631,7 +631,7 @@ -=head3 C<Apache2::FTYPE_PROTOCOL> +=head3 C<Apache2::Const::FTYPE_PROTOCOL> =over @@ -643,7 +643,7 @@ -=head3 C<Apache2::FTYPE_RESOURCE> +=head3 C<Apache2::Const::FTYPE_RESOURCE> =over @@ -655,7 +655,7 @@ -=head3 C<Apache2::FTYPE_TRANSCODE> +=head3 C<Apache2::Const::FTYPE_TRANSCODE> =over @@ -678,7 +678,7 @@ -=head3 C<Apache2::HTTP_ACCEPTED> +=head3 C<Apache2::Const::HTTP_ACCEPTED> =over @@ -690,7 +690,7 @@ -=head3 C<Apache2::HTTP_BAD_GATEWAY> +=head3 C<Apache2::Const::HTTP_BAD_GATEWAY> =over @@ -702,7 +702,7 @@ -=head3 C<Apache2::HTTP_BAD_REQUEST> +=head3 C<Apache2::Const::HTTP_BAD_REQUEST> =over @@ -714,7 +714,7 @@ -=head3 C<Apache2::HTTP_CONFLICT> +=head3 C<Apache2::Const::HTTP_CONFLICT> =over @@ -726,7 +726,7 @@ -=head3 C<Apache2::HTTP_CONTINUE> +=head3 C<Apache2::Const::HTTP_CONTINUE> =over @@ -738,7 +738,7 @@ -=head3 C<Apache2::HTTP_CREATED> +=head3 C<Apache2::Const::HTTP_CREATED> =over @@ -750,7 +750,7 @@ -=head3 C<Apache2::HTTP_EXPECTATION_FAILED> +=head3 C<Apache2::Const::HTTP_EXPECTATION_FAILED> =over @@ -762,7 +762,7 @@ -=head3 C<Apache2::HTTP_FAILED_DEPENDENCY> +=head3 C<Apache2::Const::HTTP_FAILED_DEPENDENCY> =over @@ -774,7 +774,7 @@ -=head3 C<Apache2::HTTP_FORBIDDEN> +=head3 C<Apache2::Const::HTTP_FORBIDDEN> =over @@ -786,7 +786,7 @@ -=head3 C<Apache2::HTTP_GATEWAY_TIME_OUT> +=head3 C<Apache2::Const::HTTP_GATEWAY_TIME_OUT> =over @@ -798,7 +798,7 @@ -=head3 C<Apache2::HTTP_GONE> +=head3 C<Apache2::Const::HTTP_GONE> =over @@ -810,7 +810,7 @@ -=head3 C<Apache2::HTTP_INSUFFICIENT_STORAGE> +=head3 C<Apache2::Const::HTTP_INSUFFICIENT_STORAGE> =over @@ -822,7 +822,7 @@ -=head3 C<Apache2::HTTP_INTERNAL_SERVER_ERROR> +=head3 C<Apache2::Const::HTTP_INTERNAL_SERVER_ERROR> =over @@ -834,7 +834,7 @@ -=head3 C<Apache2::HTTP_LENGTH_REQUIRED> +=head3 C<Apache2::Const::HTTP_LENGTH_REQUIRED> =over @@ -846,7 +846,7 @@ -=head3 C<Apache2::HTTP_LOCKED> +=head3 C<Apache2::Const::HTTP_LOCKED> =over @@ -858,7 +858,7 @@ -=head3 C<Apache2::HTTP_METHOD_NOT_ALLOWED> +=head3 C<Apache2::Const::HTTP_METHOD_NOT_ALLOWED> =over @@ -870,7 +870,7 @@ -=head3 C<Apache2::HTTP_MOVED_PERMANENTLY> +=head3 C<Apache2::Const::HTTP_MOVED_PERMANENTLY> =over @@ -882,7 +882,7 @@ -=head3 C<Apache2::HTTP_MOVED_TEMPORARILY> +=head3 C<Apache2::Const::HTTP_MOVED_TEMPORARILY> =over @@ -894,7 +894,7 @@ -=head3 C<Apache2::HTTP_MULTIPLE_CHOICES> +=head3 C<Apache2::Const::HTTP_MULTIPLE_CHOICES> =over @@ -906,7 +906,7 @@ -=head3 C<Apache2::HTTP_MULTI_STATUS> +=head3 C<Apache2::Const::HTTP_MULTI_STATUS> =over @@ -918,7 +918,7 @@ -=head3 C<Apache2::HTTP_NON_AUTHORITATIVE> +=head3 C<Apache2::Const::HTTP_NON_AUTHORITATIVE> =over @@ -930,7 +930,7 @@ -=head3 C<Apache2::HTTP_NOT_ACCEPTABLE> +=head3 C<Apache2::Const::HTTP_NOT_ACCEPTABLE> =over @@ -942,7 +942,7 @@ -=head3 C<Apache2::HTTP_NOT_EXTENDED> +=head3 C<Apache2::Const::HTTP_NOT_EXTENDED> =over @@ -954,7 +954,7 @@ -=head3 C<Apache2::HTTP_NOT_FOUND> +=head3 C<Apache2::Const::HTTP_NOT_FOUND> =over @@ -966,7 +966,7 @@ -=head3 C<Apache2::HTTP_NOT_IMPLEMENTED> +=head3 C<Apache2::Const::HTTP_NOT_IMPLEMENTED> =over @@ -978,7 +978,7 @@ -=head3 C<Apache2::HTTP_NOT_MODIFIED> +=head3 C<Apache2::Const::HTTP_NOT_MODIFIED> =over @@ -990,7 +990,7 @@ -=head3 C<Apache2::HTTP_NO_CONTENT> +=head3 C<Apache2::Const::HTTP_NO_CONTENT> =over @@ -1002,7 +1002,7 @@ -=head3 C<Apache2::HTTP_OK> +=head3 C<Apache2::Const::HTTP_OK> =over @@ -1014,7 +1014,7 @@ -=head3 C<Apache2::HTTP_PARTIAL_CONTENT> +=head3 C<Apache2::Const::HTTP_PARTIAL_CONTENT> =over @@ -1026,7 +1026,7 @@ -=head3 C<Apache2::HTTP_PAYMENT_REQUIRED> +=head3 C<Apache2::Const::HTTP_PAYMENT_REQUIRED> =over @@ -1038,7 +1038,7 @@ -=head3 C<Apache2::HTTP_PRECONDITION_FAILED> +=head3 C<Apache2::Const::HTTP_PRECONDITION_FAILED> =over @@ -1050,7 +1050,7 @@ -=head3 C<Apache2::HTTP_PROCESSING> +=head3 C<Apache2::Const::HTTP_PROCESSING> =over @@ -1062,7 +1062,7 @@ -=head3 C<Apache2::HTTP_PROXY_AUTHENTICATION_REQUIRED> +=head3 C<Apache2::Const::HTTP_PROXY_AUTHENTICATION_REQUIRED> =over @@ -1074,7 +1074,7 @@ -=head3 C<Apache2::HTTP_RANGE_NOT_SATISFIABLE> +=head3 C<Apache2::Const::HTTP_RANGE_NOT_SATISFIABLE> =over @@ -1086,7 +1086,7 @@ -=head3 C<Apache2::HTTP_REQUEST_ENTITY_TOO_LARGE> +=head3 C<Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE> =over @@ -1098,7 +1098,7 @@ -=head3 C<Apache2::HTTP_REQUEST_TIME_OUT> +=head3 C<Apache2::Const::HTTP_REQUEST_TIME_OUT> =over @@ -1110,7 +1110,7 @@ -=head3 C<Apache2::HTTP_REQUEST_URI_TOO_LARGE> +=head3 C<Apache2::Const::HTTP_REQUEST_URI_TOO_LARGE> =over @@ -1122,7 +1122,7 @@ -=head3 C<Apache2::HTTP_RESET_CONTENT> +=head3 C<Apache2::Const::HTTP_RESET_CONTENT> =over @@ -1134,7 +1134,7 @@ -=head3 C<Apache2::HTTP_SEE_OTHER> +=head3 C<Apache2::Const::HTTP_SEE_OTHER> =over @@ -1146,7 +1146,7 @@ -=head3 C<Apache2::HTTP_SERVICE_UNAVAILABLE> +=head3 C<Apache2::Const::HTTP_SERVICE_UNAVAILABLE> =over @@ -1158,7 +1158,7 @@ -=head3 C<Apache2::HTTP_SWITCHING_PROTOCOLS> +=head3 C<Apache2::Const::HTTP_SWITCHING_PROTOCOLS> =over @@ -1170,7 +1170,7 @@ -=head3 C<Apache2::HTTP_TEMPORARY_REDIRECT> +=head3 C<Apache2::Const::HTTP_TEMPORARY_REDIRECT> =over @@ -1182,7 +1182,7 @@ -=head3 C<Apache2::HTTP_UNAUTHORIZED> +=head3 C<Apache2::Const::HTTP_UNAUTHORIZED> =over @@ -1194,7 +1194,7 @@ -=head3 C<Apache2::HTTP_UNPROCESSABLE_ENTITY> +=head3 C<Apache2::Const::HTTP_UNPROCESSABLE_ENTITY> =over @@ -1206,7 +1206,7 @@ -=head3 C<Apache2::HTTP_UNSUPPORTED_MEDIA_TYPE> +=head3 C<Apache2::Const::HTTP_UNSUPPORTED_MEDIA_TYPE> =over @@ -1218,7 +1218,7 @@ -=head3 C<Apache2::HTTP_UPGRADE_REQUIRED> +=head3 C<Apache2::Const::HTTP_UPGRADE_REQUIRED> =over @@ -1230,7 +1230,7 @@ -=head3 C<Apache2::HTTP_USE_PROXY> +=head3 C<Apache2::Const::HTTP_USE_PROXY> =over @@ -1242,7 +1242,7 @@ -=head3 C<Apache2::HTTP_VARIANT_ALSO_VARIES> +=head3 C<Apache2::Const::HTTP_VARIANT_ALSO_VARIES> =over @@ -1266,7 +1266,7 @@ -=head3 C<Apache2::MODE_EATCRLF> +=head3 C<Apache2::Const::MODE_EATCRLF> =over @@ -1282,7 +1282,7 @@ -=head3 C<Apache2::MODE_EXHAUSTIVE> +=head3 C<Apache2::Const::MODE_EXHAUSTIVE> =over @@ -1297,7 +1297,7 @@ -=head3 C<Apache2::MODE_GETLINE> +=head3 C<Apache2::Const::MODE_GETLINE> =over @@ -1312,7 +1312,7 @@ -=head3 C<Apache2::MODE_INIT> +=head3 C<Apache2::Const::MODE_INIT> =over @@ -1327,7 +1327,7 @@ -=head3 C<Apache2::MODE_READBYTES> +=head3 C<Apache2::Const::MODE_READBYTES> =over @@ -1342,7 +1342,7 @@ -=head3 C<Apache2::MODE_SPECULATIVE> +=head3 C<Apache2::Const::MODE_SPECULATIVE> =over @@ -1371,7 +1371,7 @@ -=head3 C<Apache2::LOG_ALERT> +=head3 C<Apache2::Const::LOG_ALERT> =over @@ -1385,7 +1385,7 @@ -=head3 C<Apache2::LOG_CRIT> +=head3 C<Apache2::Const::LOG_CRIT> =over @@ -1399,7 +1399,7 @@ -=head3 C<Apache2::LOG_DEBUG> +=head3 C<Apache2::Const::LOG_DEBUG> =over @@ -1413,7 +1413,7 @@ -=head3 C<Apache2::LOG_EMERG> +=head3 C<Apache2::Const::LOG_EMERG> =over @@ -1429,7 +1429,7 @@ -=head3 C<Apache2::LOG_ERR> +=head3 C<Apache2::Const::LOG_ERR> =over @@ -1444,7 +1444,7 @@ -=head3 C<Apache2::LOG_INFO> +=head3 C<Apache2::Const::LOG_INFO> =over @@ -1459,7 +1459,7 @@ -=head3 C<Apache2::LOG_LEVELMASK> +=head3 C<Apache2::Const::LOG_LEVELMASK> =over @@ -1473,7 +1473,7 @@ -=head3 C<Apache2::LOG_NOTICE> +=head3 C<Apache2::Const::LOG_NOTICE> =over @@ -1487,7 +1487,7 @@ -=head3 C<Apache2::LOG_STARTUP> +=head3 C<Apache2::Const::LOG_STARTUP> =over @@ -1501,7 +1501,7 @@ -=head3 C<Apache2::LOG_TOCLIENT> +=head3 C<Apache2::Const::LOG_TOCLIENT> =over @@ -1515,7 +1515,7 @@ -=head3 C<Apache2::LOG_WARNING> +=head3 C<Apache2::Const::LOG_WARNING> =over @@ -1539,7 +1539,7 @@ -=head3 C<Apache2::METHODS> +=head3 C<Apache2::Const::METHODS> =over @@ -1551,7 +1551,7 @@ -=head3 C<Apache2::M_BASELINE_CONTROL> +=head3 C<Apache2::Const::M_BASELINE_CONTROL> =over @@ -1563,7 +1563,7 @@ -=head3 C<Apache2::M_CHECKIN> +=head3 C<Apache2::Const::M_CHECKIN> =over @@ -1575,7 +1575,7 @@ -=head3 C<Apache2::M_CHECKOUT> +=head3 C<Apache2::Const::M_CHECKOUT> =over @@ -1587,7 +1587,7 @@ -=head3 C<Apache2::M_CONNECT> +=head3 C<Apache2::Const::M_CONNECT> =over @@ -1599,7 +1599,7 @@ -=head3 C<Apache2::M_COPY> +=head3 C<Apache2::Const::M_COPY> =over @@ -1611,7 +1611,7 @@ -=head3 C<Apache2::M_DELETE> +=head3 C<Apache2::Const::M_DELETE> =over @@ -1623,7 +1623,7 @@ -=head3 C<Apache2::M_GET> +=head3 C<Apache2::Const::M_GET> =over @@ -1636,7 +1636,7 @@ -=head3 C<Apache2::M_INVALID> +=head3 C<Apache2::Const::M_INVALID> =over @@ -1648,7 +1648,7 @@ -=head3 C<Apache2::M_LABEL> +=head3 C<Apache2::Const::M_LABEL> =over @@ -1660,7 +1660,7 @@ -=head3 C<Apache2::M_LOCK> +=head3 C<Apache2::Const::M_LOCK> =over @@ -1672,7 +1672,7 @@ -=head3 C<Apache2::M_MERGE> +=head3 C<Apache2::Const::M_MERGE> =over @@ -1684,7 +1684,7 @@ -=head3 C<Apache2::M_MKACTIVITY> +=head3 C<Apache2::Const::M_MKACTIVITY> =over @@ -1696,7 +1696,7 @@ -=head3 C<Apache2::M_MKCOL> +=head3 C<Apache2::Const::M_MKCOL> =over @@ -1708,7 +1708,7 @@ -=head3 C<Apache2::M_MKWORKSPACE> +=head3 C<Apache2::Const::M_MKWORKSPACE> =over @@ -1720,7 +1720,7 @@ -=head3 C<Apache2::M_MOVE> +=head3 C<Apache2::Const::M_MOVE> =over @@ -1732,7 +1732,7 @@ -=head3 C<Apache2::M_OPTIONS> +=head3 C<Apache2::Const::M_OPTIONS> =over @@ -1744,7 +1744,7 @@ -=head3 C<Apache2::M_PATCH> +=head3 C<Apache2::Const::M_PATCH> =over @@ -1756,7 +1756,7 @@ -=head3 C<Apache2::M_POST> +=head3 C<Apache2::Const::M_POST> =over @@ -1768,7 +1768,7 @@ -=head3 C<Apache2::M_PROPFIND> +=head3 C<Apache2::Const::M_PROPFIND> =over @@ -1780,7 +1780,7 @@ -=head3 C<Apache2::M_PROPPATCH> +=head3 C<Apache2::Const::M_PROPPATCH> =over @@ -1792,7 +1792,7 @@ -=head3 C<Apache2::M_PUT> +=head3 C<Apache2::Const::M_PUT> =over @@ -1804,7 +1804,7 @@ -=head3 C<Apache2::M_REPORT> +=head3 C<Apache2::Const::M_REPORT> =over @@ -1816,7 +1816,7 @@ -=head3 C<Apache2::M_TRACE> +=head3 C<Apache2::Const::M_TRACE> =over @@ -1828,7 +1828,7 @@ -=head3 C<Apache2::M_UNCHECKOUT> +=head3 C<Apache2::Const::M_UNCHECKOUT> =over @@ -1840,7 +1840,7 @@ -=head3 C<Apache2::M_UNLOCK> +=head3 C<Apache2::Const::M_UNLOCK> =over @@ -1852,7 +1852,7 @@ -=head3 C<Apache2::M_UPDATE> +=head3 C<Apache2::Const::M_UPDATE> =over @@ -1864,7 +1864,7 @@ -=head3 C<Apache2::M_VERSION_CONTROL> +=head3 C<Apache2::Const::M_VERSION_CONTROL> =over @@ -1885,7 +1885,7 @@ -=head3 C<Apache2::MPMQ_NOT_SUPPORTED> +=head3 C<Apache2::Const::MPMQ_NOT_SUPPORTED> =over @@ -1897,7 +1897,7 @@ -=head3 C<Apache2::MPMQ_STATIC> +=head3 C<Apache2::Const::MPMQ_STATIC> =over @@ -1909,7 +1909,7 @@ -=head3 C<Apache2::MPMQ_DYNAMIC> +=head3 C<Apache2::Const::MPMQ_DYNAMIC> =over @@ -1921,7 +1921,7 @@ -=head3 C<Apache2::MPMQ_MAX_DAEMON_USED> +=head3 C<Apache2::Const::MPMQ_MAX_DAEMON_USED> =over @@ -1933,7 +1933,7 @@ -=head3 C<Apache2::MPMQ_IS_THREADED> +=head3 C<Apache2::Const::MPMQ_IS_THREADED> =over @@ -1945,7 +1945,7 @@ -=head3 C<Apache2::MPMQ_IS_FORKED> +=head3 C<Apache2::Const::MPMQ_IS_FORKED> =over @@ -1957,7 +1957,7 @@ -=head3 C<Apache2::MPMQ_HARD_LIMIT_DAEMONS> +=head3 C<Apache2::Const::MPMQ_HARD_LIMIT_DAEMONS> =over @@ -1969,7 +1969,7 @@ -=head3 C<Apache2::MPMQ_HARD_LIMIT_THREADS> +=head3 C<Apache2::Const::MPMQ_HARD_LIMIT_THREADS> =over @@ -1981,7 +1981,7 @@ -=head3 C<Apache2::MPMQ_MAX_THREADS> +=head3 C<Apache2::Const::MPMQ_MAX_THREADS> =over @@ -1993,7 +1993,7 @@ -=head3 C<Apache2::MPMQ_MIN_SPARE_DAEMONS> +=head3 C<Apache2::Const::MPMQ_MIN_SPARE_DAEMONS> =over @@ -2005,7 +2005,7 @@ -=head3 C<Apache2::MPMQ_MIN_SPARE_THREADS> +=head3 C<Apache2::Const::MPMQ_MIN_SPARE_THREADS> =over @@ -2017,7 +2017,7 @@ -=head3 C<Apache2::MPMQ_MAX_SPARE_DAEMONS> +=head3 C<Apache2::Const::MPMQ_MAX_SPARE_DAEMONS> =over @@ -2029,7 +2029,7 @@ -=head3 C<Apache2::MPMQ_MAX_SPARE_THREADS> +=head3 C<Apache2::Const::MPMQ_MAX_SPARE_THREADS> =over @@ -2041,7 +2041,7 @@ -=head3 C<Apache2::MPMQ_MAX_REQUESTS_DAEMON> +=head3 C<Apache2::Const::MPMQ_MAX_REQUESTS_DAEMON> =over @@ -2053,7 +2053,7 @@ -=head3 C<Apache2::MPMQ_MAX_DAEMONS> +=head3 C<Apache2::Const::MPMQ_MAX_DAEMONS> =over @@ -2077,7 +2077,7 @@ -=head3 C<Apache2::OPT_ALL> +=head3 C<Apache2::Const::OPT_ALL> =over @@ -2089,7 +2089,7 @@ -=head3 C<Apache2::OPT_EXECCGI> +=head3 C<Apache2::Const::OPT_EXECCGI> =over @@ -2101,7 +2101,7 @@ -=head3 C<Apache2::OPT_INCLUDES> +=head3 C<Apache2::Const::OPT_INCLUDES> =over @@ -2113,7 +2113,7 @@ -=head3 C<Apache2::OPT_INCNOEXEC> +=head3 C<Apache2::Const::OPT_INCNOEXEC> =over @@ -2125,7 +2125,7 @@ -=head3 C<Apache2::OPT_INDEXES> +=head3 C<Apache2::Const::OPT_INDEXES> =over @@ -2137,7 +2137,7 @@ -=head3 C<Apache2::OPT_MULTI> +=head3 C<Apache2::Const::OPT_MULTI> =over @@ -2149,7 +2149,7 @@ -=head3 C<Apache2::OPT_NONE> +=head3 C<Apache2::Const::OPT_NONE> =over @@ -2161,7 +2161,7 @@ -=head3 C<Apache2::OPT_SYM_LINKS> +=head3 C<Apache2::Const::OPT_SYM_LINKS> =over @@ -2173,7 +2173,7 @@ -=head3 C<Apache2::OPT_SYM_OWNER> +=head3 C<Apache2::Const::OPT_SYM_OWNER> =over @@ -2185,7 +2185,7 @@ -=head3 C<Apache2::OPT_UNSET> +=head3 C<Apache2::Const::OPT_UNSET> =over @@ -2208,7 +2208,7 @@ -=head3 C<Apache2::ACCESS_CONF> +=head3 C<Apache2::Const::ACCESS_CONF> F<*.conf> inside C<E<lt>DirectoryE<gt>> or C<E<lt>LocationE<gt>> @@ -2222,13 +2222,13 @@ -=head3 C<Apache2::OR_ALL> +=head3 C<Apache2::Const::OR_ALL> -C<L<Apache2::OR_LIMIT|/C_Apache2__OR_LIMIT_>> | -C<L<Apache2::OR_OPTIONS|/C_Apache2__OR_OPTIONS_>> | -C<L<Apache2::OR_FILEINFO|/C_Apache2__OR_FILEINFO_>> | -C<L<Apache2::OR_AUTHCFG|/C_Apache2__OR_AUTHCFG_>> | -C<L<Apache2::OR_INDEXES|/C_Apache2__OR_INDEXES_>> +C<L<Apache2::Const::OR_LIMIT|/C_Apache2__OR_LIMIT_>> | +C<L<Apache2::Const::OR_OPTIONS|/C_Apache2__OR_OPTIONS_>> | +C<L<Apache2::Const::OR_FILEINFO|/C_Apache2__OR_FILEINFO_>> | +C<L<Apache2::Const::OR_AUTHCFG|/C_Apache2__OR_AUTHCFG_>> | +C<L<Apache2::Const::OR_INDEXES|/C_Apache2__OR_INDEXES_>> =over @@ -2240,7 +2240,7 @@ -=head3 C<Apache2::OR_AUTHCFG> +=head3 C<Apache2::Const::OR_AUTHCFG> F<*.conf> inside C<E<lt>DirectoryE<gt>> or C<E<lt>LocationE<gt>> and F<.htaccess> when C<AllowOverride AuthConfig> @@ -2255,7 +2255,7 @@ -=head3 C<Apache2::OR_FILEINFO> +=head3 C<Apache2::Const::OR_FILEINFO> F<*.conf> anywhere and F<.htaccess> when C<AllowOverride FileInfo> @@ -2269,7 +2269,7 @@ -=head3 C<Apache2::OR_INDEXES> +=head3 C<Apache2::Const::OR_INDEXES> F<*.conf> anywhere and F<.htaccess> when C<AllowOverride Indexes> @@ -2283,7 +2283,7 @@ -=head3 C<Apache2::OR_LIMIT> +=head3 C<Apache2::Const::OR_LIMIT> F<*.conf> inside C<E<lt>DirectoryE<gt>> or C<E<lt>LocationE<gt>> and F<.htaccess> when C<AllowOverride Limit> @@ -2298,7 +2298,7 @@ -=head3 C<Apache2::OR_NONE> +=head3 C<Apache2::Const::OR_NONE> F<*.conf> is not available anywhere in this override @@ -2312,7 +2312,7 @@ -=head3 C<Apache2::OR_OPTIONS> +=head3 C<Apache2::Const::OR_OPTIONS> F<*.conf> anywhere and F<.htaccess> when C<AllowOverride Options> @@ -2326,7 +2326,7 @@ -=head3 C<Apache2::OR_UNSET> +=head3 C<Apache2::Const::OR_UNSET> Unset a directive (in C<Allow>) @@ -2340,7 +2340,7 @@ -=head3 C<Apache2::RSRC_CONF> +=head3 C<Apache2::Const::RSRC_CONF> F<*.conf> outside C<E<lt>DirectoryE<gt>> or C<E<lt>LocationE<gt>> @@ -2364,7 +2364,7 @@ -=head3 C<Apache2::CRLF> +=head3 C<Apache2::Const::CRLF> =over @@ -2376,7 +2376,7 @@ -=head3 C<Apache2::CR> +=head3 C<Apache2::Const::CR> =over @@ -2388,7 +2388,7 @@ -=head3 C<Apache2::LF> +=head3 C<Apache2::Const::LF> =over @@ -2411,7 +2411,7 @@ -=head3 C<Apache2::REMOTE_DOUBLE_REV> +=head3 C<Apache2::Const::REMOTE_DOUBLE_REV> =over @@ -2422,7 +2422,7 @@ -=head3 C<Apache2::REMOTE_HOST> +=head3 C<Apache2::Const::REMOTE_HOST> =over @@ -2434,7 +2434,7 @@ -=head3 C<Apache2::REMOTE_NAME> +=head3 C<Apache2::Const::REMOTE_NAME> =over @@ -2446,7 +2446,7 @@ -=head3 C<Apache2::REMOTE_NOLOOKUP> +=head3 C<Apache2::Const::REMOTE_NOLOOKUP> =over @@ -2468,7 +2468,7 @@ -=head3 C<Apache2::SATISFY_ALL> +=head3 C<Apache2::Const::SATISFY_ALL> =over @@ -2480,7 +2480,7 @@ -=head3 C<Apache2::SATISFY_ANY> +=head3 C<Apache2::Const::SATISFY_ANY> =over @@ -2493,7 +2493,7 @@ -=head3 C<Apache2::SATISFY_NOSPEC> +=head3 C<Apache2::Const::SATISFY_NOSPEC> =over @@ -2516,7 +2516,7 @@ -=head3 C<Apache2::DIR_MAGIC_TYPE> +=head3 C<Apache2::Const::DIR_MAGIC_TYPE> =over Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Filter.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Filter.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Filter.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Filter.pod Mon Apr 4 13:38:47 2005 @@ -280,7 +280,7 @@ Notice that you should either complete the current filter invocation normally (by calling C<L<get_brigade|/C_get_brigade_>> or C<L<pass_brigade|/C_pass_brigade_>> depending on the filter kind) or -if nothing was done, return C<Apache2::DECLINED> and mod_perl will take +if nothing was done, return C<Apache2::Const::DECLINED> and mod_perl will take care of passing the current bucket brigade through unmodified to the next filter in chain. @@ -295,7 +295,7 @@ ) and the connection filter is removed, it won't be added until the connection is closed. Which may happen after many HTTP requests. You may want to keep the filter in place and pass the data through -unmodified, by returning C<Apache2::DECLINED>. If you need to reset the +unmodified, by returning C<Apache2::Const::DECLINED>. If you need to reset the whole or parts of the filter context between requests, use the L<technique based on C<$c-E<gt>keepalives> counting|docs::2.0::user::handler::filters>. @@ -425,7 +425,7 @@ At the end of this section the available modes are presented. If the argument C<$mode> is not passed, -C<L<Apache2::MODE_READBYTES|docs::2.0::api::Apache2::Const/C_Apache2__MODE_READBYTES_>> +C<L<Apache2::Const::MODE_READBYTES|docs::2.0::api::Apache2::Const/C_Apache2__MODE_READBYTES_>> is used as a default value. @@ -501,31 +501,31 @@ =over -=item * C<L<Apache2::MODE_READBYTES|docs::2.0::api::Apache2::Const/C_Apache2__MODE_READBYTES_>> +=item * C<L<Apache2::Const::MODE_READBYTES|docs::2.0::api::Apache2::Const/C_Apache2__MODE_READBYTES_>> The filter should return at most readbytes data -=item * C<L<Apache2::MODE_GETLINE|docs::2.0::api::Apache2::Const/C_Apache2__MODE_GETLINE_>> +=item * C<L<Apache2::Const::MODE_GETLINE|docs::2.0::api::Apache2::Const/C_Apache2__MODE_GETLINE_>> The filter should return at most one line of CRLF data. (If a potential line is too long or no CRLF is found, the filter may return partial data). -=item * C<L<Apache2::MODE_EATCRLF|docs::2.0::api::Apache2::Const/C_Apache2__MODE_EATCRLF_>> +=item * C<L<Apache2::Const::MODE_EATCRLF|docs::2.0::api::Apache2::Const/C_Apache2__MODE_EATCRLF_>> The filter should implicitly eat any CRLF pairs that it sees. -=item * C<L<Apache2::MODE_SPECULATIVE|docs::2.0::api::Apache2::Const/C_Apache2__MODE_SPECULATIVE_>> +=item * C<L<Apache2::Const::MODE_SPECULATIVE|docs::2.0::api::Apache2::Const/C_Apache2__MODE_SPECULATIVE_>> The filter read should be treated as speculative and any returned data should be stored for later retrieval in another mode. -=item * C<L<Apache2::MODE_EXHAUSTIVE|docs::2.0::api::Apache2::Const/C_Apache2__MODE_EXHAUSTIVE_>> +=item * C<L<Apache2::Const::MODE_EXHAUSTIVE|docs::2.0::api::Apache2::Const/C_Apache2__MODE_EXHAUSTIVE_>> The filter read should be exhaustive and read until it can not read any more. Use this mode with extreme caution. -=item * C<L<Apache2::MODE_INIT|docs::2.0::api::Apache2::Const/C_Apache2__MODE_INIT_>> +=item * C<L<Apache2::Const::MODE_INIT|docs::2.0::api::Apache2::Const/C_Apache2__MODE_INIT_>> The filter should initialize the connection if needed, NNTP or FTP over SSL for example. @@ -555,7 +555,7 @@ # ... process $bb - return Apache2::OK; + return Apache2::Const::OK; } Usually arguments C<$mode>, C<$block>, C<$readbytes> are the same as @@ -574,7 +574,7 @@ # ... process $bb - return Apache2::OK; + return Apache2::Const::OK; } and the error checking will be done on your behalf. @@ -663,7 +663,7 @@ my $rc = $f->next->pass_brigade($bb); return $rc unless $rc == APR::SUCCESS; - return Apache2::OK; + return Apache2::Const::OK; } @@ -987,7 +987,7 @@ sub init : FilterInitHandler { my $f = shift; #... - return Apache2::OK; + return Apache2::Const::OK; } In order to hook this filter callback, the real filter has to assign @@ -1017,7 +1017,7 @@ sub filter : FilterRequestHandler FilterHasInitHandler(\&init) { my ($f, $bb) = @_; # ... - return Apache2::OK; + return Apache2::Const::OK; } For further discussion and examples refer to the L<Filter Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/HookRun.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/HookRun.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/HookRun.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/HookRun.pod Mon Apr 4 13:38:47 2005 @@ -29,53 +29,53 @@ # $r->push_handlers(PerlAccessHandler => \&my_access); $rc = $r->run_post_read_request(); - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_translate_name; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_map_to_storage; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; # this must be run all a big havoc will happen in the following # phases $r->location_merge($path); $rc = $r->run_header_parser; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; my $args = $r->args || ''; if ($args eq 'die') { - $r->die(Apache2::SERVER_ERROR); - return Apache2::DONE; + $r->die(Apache2::Const::SERVER_ERROR); + return Apache2::Const::DONE; } $rc = $r->run_access_checker; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_auth_checker; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_check_user_id; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_type_checker; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_fixups; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; # $r->run_handler is called internally by $r->invoke_handler, # invoke_handler sets all kind of filters, and does a few other # things but it's possible to call $r->run_handler, bypassing # invoke_handler $rc = $r->invoke_handler; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; $rc = $r->run_log_transaction; - return $rc unless $rc == Apache2::OK or $rc == Apache2::DECLINED; + return $rc unless $rc == Apache2::Const::OK or $rc == Apache2::Const::DECLINED; - return Apache2::OK; + return Apache2::Const::OK; } @@ -170,7 +170,7 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, +The status of the current phase run: C<Apache2::Const::OK>, C<Apache2::HTTP_...> =item since: 1.99_12 @@ -207,8 +207,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 @@ -241,8 +241,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 @@ -282,8 +282,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 @@ -323,8 +323,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 @@ -355,8 +355,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 @@ -390,7 +390,7 @@ =item ret: C<$rc> ( integer ) -C<Apache2::OK> or C<Apache2::DECLINED>. +C<Apache2::Const::OK> or C<Apache2::Const::DECLINED>. =item since: 1.99_12 @@ -416,8 +416,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...> +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...> =item since: 1.99_12 @@ -448,9 +448,9 @@ =item ret: C<$rc> ( integer ) -C<Apache2::DONE> (or C<Apache2::HTTP_*>) if this contextless request was -just fulfilled (such as C<TRACE>), C<Apache2::OK> if this is not a -file, and C<Apache2::DECLINED> if this is a file. The core +C<Apache2::Const::DONE> (or C<Apache2::HTTP_*>) if this contextless request was +just fulfilled (such as C<TRACE>), C<Apache2::Const::OK> if this is not a +file, and C<Apache2::Const::DECLINED> if this is a file. The core map_to_storage (C<Apache2::HOOK_RUN_LAST>) will C<directory_walk()> and C<file_walk()> the C<$r-E<gt>filename> (all internal C functions). @@ -486,8 +486,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK> or -C<Apache2::DECLINED>. +The status of the current phase run: C<Apache2::Const::OK> or +C<Apache2::Const::DECLINED>. =item since: 1.99_12 @@ -519,8 +519,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 @@ -550,8 +550,8 @@ =item ret: C<$rc> ( integer ) -The status of the current phase run: C<Apache2::OK>, -C<Apache2::DECLINED>, C<Apache2::HTTP_...>. +The status of the current phase run: C<Apache2::Const::OK>, +C<Apache2::Const::DECLINED>, C<Apache2::HTTP_...>. =item since: 1.99_12 Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Log.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Log.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Log.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Log.pod Mon Apr 4 13:38:47 2005 @@ -17,9 +17,9 @@ my $s = Apache2->server; $s->log_error("server: log_error"); - $s->log_serror(__FILE__, __LINE__, Apache2::LOG_ERR, + $s->log_serror(__FILE__, __LINE__, Apache2::Const::LOG_ERR, APR::SUCCESS, "log_serror logging at err level"); - $s->log_serror(Apache2::Log::LOG_MARK, Apache2::LOG_DEBUG, + $s->log_serror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_DEBUG, APR::ENOTIME, "debug print"); Apache2::ServerRec->log_error("routine warning"); @@ -51,20 +51,20 @@ my $s = $r->server; $s->log_error("server: log_error"); - $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::LOG_DEBUG, + $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_DEBUG, APR::ENOTIME, "in debug"); - $s->log_serror(Apache2::Log::LOG_MARK, Apache2::LOG_INFO, + $s->log_serror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_INFO, APR::SUCCESS, "server info"); - $s->log_serror(Apache2::Log::LOG_MARK, Apache2::LOG_ERR, + $s->log_serror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_ERR, APR::ENOTIME, "fatal error"); $r->log_reason("fatal error"); $r->warn('routine request warning'); $s->warn('routine server warning'); - return Apache2::OK; + return Apache2::Const::OK; } 1; @@ -85,12 +85,12 @@ of the level I<warning> or higher (I<err>, I<crit>, I<elert> and I<emerg>) will be logged. Therefore this: - $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::LOG_WARNING, + $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_WARNING, APR::ENOTIME, "warning!"); will log the message, but this one won't: - $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::LOG_INFO, + $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_INFO, APR::ENOTIME, "just an info"); It will be logged only if the server log level is set to I<info> or @@ -100,7 +100,7 @@ method. The filename and the line number of the caller are logged only if -C<Apache2::LOG_DEBUG> is used (because that's how Apache 2.0 logging +C<Apache2::Const::LOG_DEBUG> is used (because that's how Apache 2.0 logging mechanism works). Note: On Win32 Apache attempts to lock all writes to a file whenever @@ -131,21 +131,21 @@ least severe) are used in logging methods to specify the log level at which the message should be logged: -=head3 C<Apache2::LOG_EMERG> +=head3 C<Apache2::Const::LOG_EMERG> -=head3 C<Apache2::LOG_ALERT> +=head3 C<Apache2::Const::LOG_ALERT> -=head3 C<Apache2::LOG_CRIT> +=head3 C<Apache2::Const::LOG_CRIT> -=head3 C<Apache2::LOG_ERR> +=head3 C<Apache2::Const::LOG_ERR> -=head3 C<Apache2::LOG_WARNING> +=head3 C<Apache2::Const::LOG_WARNING> -=head3 C<Apache2::LOG_NOTICE> +=head3 C<Apache2::Const::LOG_NOTICE> -=head3 C<Apache2::LOG_INFO> +=head3 C<Apache2::Const::LOG_INFO> -=head3 C<Apache2::LOG_DEBUG> +=head3 C<Apache2::Const::LOG_DEBUG> @@ -161,7 +161,7 @@ Here is the rest of the logging related constants: -=head3 C<Apache2::LOG_LEVELMASK> +=head3 C<Apache2::Const::LOG_LEVELMASK> used to mask off the level value, to make sure that the log level's value is within the proper bits range. e.g.: @@ -172,14 +172,14 @@ -=head3 C<Apache2::LOG_TOCLIENT> +=head3 C<Apache2::Const::LOG_TOCLIENT> used to give content handlers the option of including the error text in the C<ErrorDocument> sent back to the client. When -C<Apache2::LOG_TOCLIENT> is passed to C<log_rerror()> the error message +C<Apache2::Const::LOG_TOCLIENT> is passed to C<log_rerror()> the error message will be saved in the C<$r>'s notes table, keyed to the string I<"error-notes">, if and only if the severity level of the message is -C<Apache2::LOG_WARNING> or greater and there are no other +C<Apache2::Const::LOG_WARNING> or greater and there are no other I<"error-notes"> entry already set in the request record's notes table. Once the I<"error-notes"> entry is set, it is up to the error handler to determine whether this text should be sent back to the @@ -188,7 +188,7 @@ use Apache2::Const -compile => qw(:log); use APR::Const -compile => qw(ENOTIME); $r->log_rerror(Apache2::Log::LOG_MARK, - Apache2::LOG_ERR|Apache2::LOG_TOCLIENT, + Apache2::Const::LOG_ERR|Apache2::Const::LOG_TOCLIENT, APR::ENOTIME, "request log_rerror"); @@ -203,7 +203,7 @@ -=head3 C<Apache2::LOG_STARTUP> +=head3 C<Apache2::Const::LOG_STARTUP> is useful for startup message where no timestamps, logging level is wanted. For example: @@ -211,7 +211,7 @@ use Apache2::Const -compile => qw(:log); use APR::Const -compile => qw(SUCCESS); $s->log_serror(Apache2::Log::LOG_MARK, - Apache2::LOG_INFO, + Apache2::Const::LOG_INFO, APR::SUCCESS, "This log message comes with a header"); @@ -219,12 +219,12 @@ [Wed May 14 16:47:09 2003] [info] This log message comes with a header -whereas, when C<Apache2::LOG_STARTUP> is binary ORed as in: +whereas, when C<Apache2::Const::LOG_STARTUP> is binary ORed as in: use Apache2::Const -compile => qw(:log); use APR::Const -compile => qw(SUCCESS); $s->log_serror(Apache2::Log::LOG_MARK, - Apache2::LOG_INFO|Apache2::LOG_STARTUP, + Apache2::Const::LOG_INFO|Apache2::Const::LOG_STARTUP, APR::SUCCESS, "This log message comes with no header"); @@ -339,10 +339,10 @@ use Apache2::Const -compile => qw(:log); use APR::Const -compile => qw(ENOTIME SUCCESS); - $s->log_serror(Apache2::Log::LOG_MARK, Apache2::LOG_ERR, + $s->log_serror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_ERR, APR::SUCCESS, "log_serror logging at err level"); - $s->log_serror(Apache2::Log::LOG_MARK, Apache2::LOG_DEBUG, + $s->log_serror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_DEBUG, APR::ENOTIME, "debug print"); @@ -357,7 +357,7 @@ is the same as: - $s->log_error(Apache2::Log::LOG_MARK, Apache2::LOG_WARNING, + $s->log_error(Apache2::Log::LOG_MARK, Apache2::Const::LOG_WARNING, APR::SUCCESS, @warnings) =over 4 @@ -511,10 +511,10 @@ use Apache2::Const -compile => qw(:log); use APR::Const -compile => qw(ENOTIME SUCCESS); - $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::LOG_ERR, + $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_ERR, APR::SUCCESS, "log_rerror logging at err level"); - $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::LOG_DEBUG, + $r->log_rerror(Apache2::Log::LOG_MARK, Apache2::Const::LOG_DEBUG, APR::ENOTIME, "debug print"); @@ -527,7 +527,7 @@ is the same as: - $r->log_error(Apache2::Log::LOG_MARK, Apache2::LOG_WARNING, + $r->log_error(Apache2::Log::LOG_MARK, Apache2::Const::LOG_WARNING, APR::SUCCESS, @warnings) =over 4 Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestIO.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestIO.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestIO.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestIO.pod Mon Apr 4 13:38:47 2005 @@ -62,7 +62,7 @@ =item ret: C<$rc> ( integer ) C<L<APR::Const status constant|docs::2.0::api::APR::Const>> if request -is malformed, C<Apache2::OK> otherwise. +is malformed, C<Apache2::Const::OK> otherwise. =item since: 1.99_10 @@ -73,7 +73,7 @@ use Apache2::Const -compile => qw(OK); $rc = $r->discard_request_body; - return $rc if $rc != Apache2::OK; + return $rc if $rc != Apache2::Const::OK; Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestRec.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestRec.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestRec.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestRec.pod Mon Apr 4 13:38:47 2005 @@ -202,8 +202,8 @@ like this the handler should set C<$r-E<gt>allowed> to the list of methods that it is willing to handle. This bitvector is used to construct the C<"Allow:"> header required for C<OPTIONS> requests, and -C<Apache2::HTTP_METHOD_NOT_ALLOWED> (405) and -C<Apache2::HTTP_NOT_IMPLEMENTED> (501) status codes. +C<Apache2::Const::HTTP_METHOD_NOT_ALLOWED> (405) and +C<Apache2::Const::HTTP_NOT_IMPLEMENTED> (501) status codes. Since the default Apache handler deals with the C<OPTIONS> method, all response handlers can usually decline to deal with C<OPTIONS>. For @@ -211,25 +211,25 @@ methods, and not C<OPTIONS>, it may want to say: use Apache2::Const -compile => qw(OK DECLINED M_GET M_POST M_OPTIONS); - if ($r->method_number == Apache2::M_OPTIONS) { - $r->allowed($r->allowed | (1<<Apache2::M_GET) | (1<<Apache2::M_POST)); - return Apache2::DECLINED; + if ($r->method_number == Apache2::Const::M_OPTIONS) { + $r->allowed($r->allowed | (1<<Apache2::Const::M_GET) | (1<<Apache2::Const::M_POST)); + return Apache2::Const::DECLINED; } C<TRACE> is always allowed, modules don't need to set it explicitly. Since the default_handler will always handle a C<GET>, a module which does *not* implement C<GET> should probably return -C<Apache2::HTTP_METHOD_NOT_ALLOWED>. Unfortunately this means that a +C<Apache2::Const::HTTP_METHOD_NOT_ALLOWED>. Unfortunately this means that a script C<GET> handler can't be installed by mod_actions. For example, if the module can handle only POST method it could start with: use Apache2::Const -compile => qw(M_POST HTTP_METHOD_NOT_ALLOWED); - unless ($r->method_number == Apache2::M_POST) { - $r->allowed($r->allowed | (1<<Apache2::M_POST)); - return Apache2::HTTP_METHOD_NOT_ALLOWED; + unless ($r->method_number == Apache2::Const::M_POST) { + $r->allowed($r->allowed | (1<<Apache2::Const::M_POST)); + return Apache2::Const::HTTP_METHOD_NOT_ALLOWED; } @@ -565,12 +565,12 @@ nevertheless to set a cookie, it has to be: $r->err_headers_out->add('Set-Cookie' => $cookie); - return Apache2::NOT_FOUND; + return Apache2::Const::NOT_FOUND; If the handler does: $r->headers_out->add('Set-Cookie' => $cookie); - return Apache2::NOT_FOUND; + return Apache2::Const::NOT_FOUND; the C<Set-Cookie> header won't be sent. @@ -897,7 +897,7 @@ my $data = ''; my $seen_eos = 0; do { - $r->input_filters->get_brigade($bb, Apache2::MODE_READBYTES, + $r->input_filters->get_brigade($bb, Apache2::Const::MODE_READBYTES, APR::BLOCK_READ, IOBUFSIZE); for (my $b = $bb->first; $b; $b = $bb->next($b)) { @@ -993,8 +993,8 @@ =head2 C<method_number> -Get/set the HTTP method, issued by the client (C<Apache2::M_GET>, -C<Apache2::M_POST>, etc.) +Get/set the HTTP method, issued by the client (C<Apache2::Const::M_GET>, +C<Apache2::Const::M_POST>, etc.) $methnum = $r->method_number(); $prev_methnum = $r->method_number($new_methnum); @@ -1105,7 +1105,7 @@ =back Used internally in certain sub-requests to prevent sending -C<Apache2::HTTP_NOT_MODIFIED> for a fragment or error documents. For +C<Apache2::Const::HTTP_NOT_MODIFIED> for a fragment or error documents. For example see the implementation in F<modules/filters/mod_include.c>. Also used internally in @@ -1586,7 +1586,7 @@ If C<$new_status> is passed the new status is assigned. Normally you would use some C<L<Apache2::Const -constant|docs::2.0::api::Apache2::Const>>, e.g. C<Apache2::REDIRECT>. +constant|docs::2.0::api::Apache2::Const>>, e.g. C<Apache2::Const::REDIRECT>. =item ret: C<$newval> ( integer ) @@ -1601,14 +1601,14 @@ Usually you will set this value indirectly by returning the status code as the handler's function result. However, there are rare instances when you want to trick Apache into thinking that the module -returned an C<Apache2::OK> status code, but actually send the browser a +returned an C<Apache2::Const::OK> status code, but actually send the browser a non-OK status. This may come handy when implementing an HTTP proxy handler. The proxy handler needs to send to the client, whatever status code the proxied server has returned, while returning -C<Apache2::OK> to Apache. e.g.: +C<Apache2::Const::OK> to Apache. e.g.: $r->status($some_code); - return Apache2::OK + return Apache2::Const::OK See also C<L<$r-E<gt>status_line|/C_status_line_>>, which. if set, overrides C<$r-E<gt>status>. @@ -1649,7 +1649,7 @@ C<status_line()>, like so: $r->status_line($response->code() . ' ' . $response->message()); - return Apache2::OK; + return Apache2::Const::OK; In this example C<$response> could be for example an C<HTTP::Response> object, if C<LWP::UserAgent> was used to implement the proxy. @@ -1659,7 +1659,7 @@ tell Apache to use that in the response like so: $r->status_line("499 We have been FooBared"); - return Apache2::OK; + return Apache2::Const::OK; Here C<499> is the new response code, and I<We have been FooBared> is the custom response message. @@ -1869,7 +1869,7 @@ For example, let's print the username passed by the client: my($res, $sent_pw) = $r->get_basic_auth_pw; - return $res if $res != Apache2::OK; + return $res if $res != Apache2::Const::OK; print "User: ", $r->user; Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/RequestUtil.pod Mon Apr 4 13:38:47 2005 @@ -125,7 +125,7 @@ Which allow-override bits are set Default value is: -C<L<Apache2::OR_AUTHCFG|docs::2.0::api::Apache2::Const/C_Apache2__OR_AUTHCFG_>> +C<L<Apache2::Const::OR_AUTHCFG|docs::2.0::api::Apache2::Const/C_Apache2__OR_AUTHCFG_>> =item ret: no return value @@ -936,7 +936,7 @@ Anonymous functions: - $r->push_handlers(PerlLogHandler => sub { return Apache2::OK }); + $r->push_handlers(PerlLogHandler => sub { return Apache2::Const::OK }); @@ -1029,7 +1029,7 @@ Anonymous functions: - $r->set_handlers(PerlLogHandler => sub { return Apache2::OK }); + $r->set_handlers(PerlLogHandler => sub { return Apache2::Const::OK }); Reset any previously set handlers: Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Response.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Response.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Response.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/Response.pod Mon Apr 4 13:38:47 2005 @@ -9,7 +9,7 @@ use Apache2::Response (); - $r->custom_response(Apache2::FORBIDDEN, "No Entry today"); + $r->custom_response(Apache2::Const::FORBIDDEN, "No Entry today"); $etag = $r->make_etag($force_weak); $r->set_etag(); @@ -65,7 +65,7 @@ constant|docs::2.0::api::Apache2::Const>> ) The status for which the custom response should be used -(e.g. C<Apache2::AUTH_REQUIRED>) +(e.g. C<Apache2::Const::AUTH_REQUIRED>) =item arg2: C<$string> (string) @@ -89,12 +89,12 @@ my $r = shift; if (MyApache2::MyShop::tired_squirrels()) { - $r->custom_response(Apache2::FORBIDDEN, + $r->custom_response(Apache2::Const::FORBIDDEN, "It's siesta time, please try later"); - return Apache2::FORBIDDEN; + return Apache2::Const::FORBIDDEN; } - return Apache2::OK; + return Apache2::Const::OK; } ... @@ -170,7 +170,7 @@ =item ret: C<$status> ( C<L<Apache2::Const status constant|docs::2.0::api::Apache2::Const>> ) -C<Apache2::OK> if the response fulfills the condition GET +C<Apache2::Const::OK> if the response fulfills the condition GET rules. Otherwise some other status code (which should be returned to Apache). Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerRec.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerRec.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerRec.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerRec.pod Mon Apr 4 13:38:47 2005 @@ -386,7 +386,7 @@ For example, to set the C<LogLevel> value to C<info>: use Apache2::Const -compile => qw(LOG_INFO); - $s->loglevel(Apache2::LOG_INFO); + $s->loglevel(Apache2::Const::LOG_INFO); Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/ServerUtil.pod Mon Apr 4 13:38:47 2005 @@ -47,7 +47,7 @@ $s->method_register('NEWGET'); # register server shutdown callback - Apache2::ServerUtil::server_shutdown_register_cleanup(sub { Apache2::OK }); + Apache2::ServerUtil::server_shutdown_register_cleanup(sub { Apache2::Const::OK }); # do something only when the server restarts my $cnt = Apache2::ServerUtil::restart_count(); @@ -163,7 +163,7 @@ sub add_my_version { my($conf_pool, $log_pool, $temp_pool, $s) = @_; $s->add_version_component("Hikers, Inc/0.99999"); - return Apache2::OK; + return Apache2::Const::OK; } or of course you could register the @@ -546,7 +546,7 @@ Anonymous functions: - $s->push_handlers(PerlLogHandler => sub { return Apache2::OK }); + $s->push_handlers(PerlLogHandler => sub { return Apache2::Const::OK }); @@ -825,7 +825,7 @@ Anonymous functions: - $r->set_handlers(PerlLogHandler => sub { return Apache2::OK }); + $r->set_handlers(PerlLogHandler => sub { return Apache2::Const::OK }); Reset any previously set handlers: Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/SubRequest.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/SubRequest.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/SubRequest.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/SubRequest.pod Mon Apr 4 13:38:47 2005 @@ -113,7 +113,7 @@ In case that you want some other request to be served as the top-level request instead of what the client requested directly, call this -method from a handler, and then immediately return C<Apache2::OK>. The +method from a handler, and then immediately return C<Apache2::Const::OK>. The client will be unaware the a different request was served to her behind the scenes. @@ -297,7 +297,7 @@ my $subr = $r->lookup_uri("/new_uri"); $sub->run; - return Apache2::OK; + return Apache2::Const::OK; } If let's say you have three request output filters registered to run @@ -335,7 +335,7 @@ =item ret: C<$rc> ( integer ) -The return code of the handler (C<Apache2::OK>, C<Apache2::DECLINED>, +The return code of the handler (C<Apache2::Const::OK>, C<Apache2::Const::DECLINED>, etc.) =item since: 1.99_12 Modified: perl/modperl/docs/trunk/src/docs/2.0/devel/core/explained.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/devel/core/explained.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/devel/core/explained.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/devel/core/explained.pod Mon Apr 4 13:38:47 2005 @@ -438,7 +438,7 @@ $subst = Apache2::CoreDemo::subst_sp($a, $b); ok t_cmp($a - $b, $subst, "subst via SP"); - Apache2::OK; + Apache2::Const::OK; } 1; Modified: perl/modperl/docs/trunk/src/docs/2.0/os/win32/config.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/os/win32/config.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/os/win32/config.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/os/win32/config.pod Mon Apr 4 13:38:47 2005 @@ -149,7 +149,7 @@ Hello from <B>$package</B>! The time is $time. </BODY></HTML> END - return Apache2::OK; + return Apache2::Const::OK; } 1; 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&r1=160095&r2=160096 ============================================================================== --- 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 Mon Apr 4 13:38:47 2005 @@ -410,7 +410,7 @@ $r->rflush; # send the headers out $r->print(long_operation()); - return Apache2::OK; + return Apache2::Const::OK; } If this doesn't work, check whether you have configured any Modified: perl/modperl/docs/trunk/src/docs/2.0/user/coding/cooking.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/user/coding/cooking.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/user/coding/cooking.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/user/coding/cooking.pod Mon Apr 4 13:38:47 2005 @@ -29,9 +29,9 @@ $r->err_headers_out->add('Set-Cookie' => $cookie); $r->headers_out->set(Location => $location); - $r->status(Apache2::REDIRECT); + $r->status(Apache2::Const::REDIRECT); - return Apache2::REDIRECT; + return Apache2::Const::REDIRECT; } 1; @@ -55,7 +55,7 @@ $r->err_headers_out->add('Set-Cookie' => $cookie); $r->headers_out->set(Location => $location); - return Apache2::REDIRECT; + return Apache2::Const::REDIRECT; } 1; Modified: perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/user/config/config.pod Mon Apr 4 13:38:47 2005 @@ -827,7 +827,7 @@ print "$_ => $ENV{$_}\n"; } - return Apache2::OK; + return Apache2::Const::OK; } 1; @@ -865,7 +865,7 @@ $r->print("$_ => $ENV{$_}\n"); } - return Apache2::OK; + return Apache2::Const::OK; } 1; Modified: perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod URL: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod?view=diff&r1=160095&r2=160096 ============================================================================== --- perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod (original) +++ perl/modperl/docs/trunk/src/docs/2.0/user/config/custom.pod Mon Apr 4 13:38:47 2005 @@ -95,8 +95,8 @@ { name => 'MyParameter', func => __PACKAGE__ . '::MyParameter', - req_override => Apache2::OR_ALL, - args_how => Apache2::ITERATE, + req_override => Apache2::Const::OR_ALL, + args_how => Apache2::Const::ITERATE, errmsg => 'MyParameter Entry1 [Entry2 ... [EntryN]]', }, { @@ -154,8 +154,8 @@ { name => 'MyParameter', func => __PACKAGE__ . '::MyParameter', - req_override => Apache2::OR_ALL, - args_how => Apache2::ITERATE, + req_override => Apache2::Const::OR_ALL, + args_how => Apache2::Const::ITERATE, errmsg => 'MyParameter Entry1 [Entry2 ... [EntryN]]', }, { @@ -222,18 +222,18 @@ and then assigned to the I<req_override> attribute: - req_override => Apache2::OR_ALL, + req_override => Apache2::Const::OR_ALL, It's possible to combine several options using the unary operators. For example, the following setting: - req_override => Apache2::RSRC_CONF | Apache2::ACCESS_CONF + req_override => Apache2::Const::RSRC_CONF | Apache2::Const::ACCESS_CONF will allow the directive to appear anywhere in I<httpd.conf>, but forbid it from ever being used in I<.htaccess> files: This attribute is optional. If not supplied, the default value of -C<L<Apache2::OR_ALL|/C_Apache2__OR_ALL_>> is used. +C<L<Apache2::Const::OR_ALL|/C_Apache2__OR_ALL_>> is used. =head3 C<args_how> @@ -249,12 +249,12 @@ In our example, the directive C<MyParameter> accepts one or more arguments, therefore we have the -C<L<Apache2::ITERATE|/C_Apache2__ITERATE_>> constant: +C<L<Apache2::Const::ITERATE|/C_Apache2__ITERATE_>> constant: - args_how => Apache2::ITERATE, + args_how => Apache2::Const::ITERATE, This attribute is optional. If not supplied, the default value of -C<L<Apache2::TAKE1|/C_Apache2__TAKE1_>> is used. +C<L<Apache2::Const::TAKE1|/C_Apache2__TAKE1_>> is used. =head3 C<errmsg> @@ -287,14 +287,14 @@ { name => '<Location', # func defaults to Redirect() - req_override => Apache2::RSRC_CONF, - args_how => Apache2::RAW_ARGS, + req_override => Apache2::Const::RSRC_CONF, + args_how => Apache2::Const::RAW_ARGS, }, { name => '<LocationMatch', func => Redirect, - req_override => Apache2::RSRC_CONF, - args_how => Apache2::RAW_ARGS, + req_override => Apache2::Const::RSRC_CONF, + args_how => Apache2::Const::RAW_ARGS, cmd_data => '1', }, ); @@ -339,51 +339,51 @@ (these constants are declared in I<httpd-2.0/include/http_config.h>.) -=head3 C<Apache2::OR_NONE> +=head3 C<Apache2::Const::OR_NONE> The directive cannot be overridden by any of the C<AllowOverride> options. -=head3 C<Apache2::OR_LIMIT> +=head3 C<Apache2::Const::OR_LIMIT> The directive can appear within directory sections, but not outside them. It is also allowed within I<.htaccess> files, provided that C<AllowOverride Limit> is set for the current directory. -=head3 C<Apache2::OR_OPTIONS> +=head3 C<Apache2::Const::OR_OPTIONS> The directive can appear anywhere within I<httpd.conf>, as well as within I<.htaccess> files provided that C<AllowOverride Options> is set for the current directory. -=head3 C<Apache2::OR_FILEINFO> +=head3 C<Apache2::Const::OR_FILEINFO> The directive can appear anywhere within I<httpd.conf>, as well as within I<.htaccess> files provided that C<AllowOverride FileInfo> is set for the current directory. -=head3 C<Apache2::OR_AUTHCFG> +=head3 C<Apache2::Const::OR_AUTHCFG> The directive can appear within directory sections, but not outside them. It is also allowed within I<.htaccess> files, provided that C<AllowOverride AuthConfig> is set for the current directory. -=head3 C<Apache2::OR_INDEXES> +=head3 C<Apache2::Const::OR_INDEXES> The directive can appear anywhere within I<httpd.conf>, as well as within I<.htaccess> files provided that C<AllowOverride Indexes> is set for the current directory. -=head3 C<Apache2::OR_UNSET> +=head3 C<Apache2::Const::OR_UNSET> META: details? "unset a directive (in Allow)" -=head3 C<Apache2::ACCESS_CONF> +=head3 C<Apache2::Const::ACCESS_CONF> The directive can appear within directory sections. The directive is not allowed in I<.htaccess> files. -=head3 C<Apache2::RSRC_CONF> +=head3 C<Apache2::Const::RSRC_CONF> The directive can appear in I<httpd.conf> outside a directory section (C<E<lt>DirectoryE<gt>>, C<E<lt>LocationE<gt>> or C<E<lt>FilesE<gt>>; @@ -404,7 +404,7 @@ installs handlers for new directives). These directives must have the C<Apache2::OR_EXEC_ON_READ> turned on. -=head3 C<Apache2::OR_ALL> +=head3 C<Apache2::Const::OR_ALL> The directive can appear anywhere. It is not limited in any way. @@ -418,7 +418,7 @@ attribute, will be called with two or more arguments. The first two arguments are always C<$self> and C<$parms>. A typical callback function which expects a single value -(C<L<Apache2::TAKE1|/C_Apache2__TAKE1_>>) might look like the following: +(C<L<Apache2::Const::TAKE1|/C_Apache2__TAKE1_>>) might look like the following: sub MyParam { my($self, $parms, $arg) = @_; @@ -506,7 +506,7 @@ -=head3 C<Apache2::NO_ARGS> +=head3 C<Apache2::Const::NO_ARGS> The directive takes no arguments. The callback will be invoked once each time the directive is encountered. For example: @@ -520,7 +520,7 @@ -=head3 C<Apache2::TAKE1> +=head3 C<Apache2::Const::TAKE1> The directive takes a single argument. The callback will be invoked once each time the directive is encountered, and its argument will be @@ -535,7 +535,7 @@ -=head3 C<Apache2::TAKE2> +=head3 C<Apache2::Const::TAKE2> The directive takes two arguments. They are passed to the callback as the third and fourth arguments. For example: @@ -549,10 +549,10 @@ -=head3 C<Apache2::TAKE3> +=head3 C<Apache2::Const::TAKE3> -This is like C<L<Apache2::TAKE1|/C_Apache2__TAKE1_>> and -C<L<Apache2::TAKE2|/C_Apache2__TAKE2_>>, but the directive takes three +This is like C<L<Apache2::Const::TAKE1|/C_Apache2__TAKE1_>> and +C<L<Apache2::Const::TAKE2|/C_Apache2__TAKE2_>>, but the directive takes three mandatory arguments. For example: sub MyParameter { @@ -564,7 +564,7 @@ -=head3 C<Apache2::TAKE12> +=head3 C<Apache2::Const::TAKE12> This directive takes one mandatory argument, and a second optional one. This can be used when the second argument has a default value @@ -579,19 +579,19 @@ -=head3 C<Apache2::TAKE23> +=head3 C<Apache2::Const::TAKE23> -C<L<Apache2::TAKE23|/C_Apache2__TAKE23_>> is just like -C<L<Apache2::TAKE12|/C_Apache2__TAKE12_>>, except now there are two +C<L<Apache2::Const::TAKE23|/C_Apache2__TAKE23_>> is just like +C<L<Apache2::Const::TAKE12|/C_Apache2__TAKE12_>>, except now there are two mandatory arguments and an optional third one. -=head3 C<Apache2::TAKE123> +=head3 C<Apache2::Const::TAKE123> -In the C<Apache2::TAKE123> variant, the first argument is mandatory and +In the C<Apache2::Const::TAKE123> variant, the first argument is mandatory and the other two are optional. This is useful for providing defaults for two arguments. @@ -600,9 +600,9 @@ -=head3 C<Apache2::ITERATE> +=head3 C<Apache2::Const::ITERATE> -C<Apache2::ITERATE> is used when a directive can take an unlimited +C<Apache2::Const::ITERATE> is used when a directive can take an unlimited number of arguments. The callback is invoked repeatedly with a single argument, once for each argument in the list. It's done this way for interoperability with the C API, which doesn't have the flexible @@ -618,9 +618,9 @@ -=head3 C<Apache2::ITERATE2> +=head3 C<Apache2::Const::ITERATE2> -C<Apache2::ITERATE2> is used for directives that take a mandatory first +C<Apache2::Const::ITERATE2> is used for directives that take a mandatory first argument followed by a list of arguments to be applied to the first. A familiar example is the C<AddType> directive, in which a series of file extensions are applied to a single MIME type: @@ -645,9 +645,9 @@ -=head3 C<Apache2::RAW_ARGS> +=head3 C<Apache2::Const::RAW_ARGS> -An I<L<args_how|/C_args_how_>> of C<Apache2::RAW_ARGS> instructs +An I<L<args_how|/C_args_how_>> of C<Apache2::Const::RAW_ARGS> instructs Apache to turn off parsing altogether. Instead it simply passes your callback function the line of text following the directive. Leading and trailing whitespace is stripped from the text, but it is not @@ -655,7 +655,7 @@ wishes to perform. This callback receives three arguments (similar to -C<L<Apache2::TAKE1|/C_Apache2__TAKE1_>>), the third of which is a +C<L<Apache2::Const::TAKE1|/C_Apache2__TAKE1_>>), the third of which is a string-valued scalar containing the remaining text following the directive line. @@ -668,7 +668,7 @@ attribute I<L<req_override|/C_req_override_>> needs to OR C<L<Apache2::OR_EXEC_ON_READ|/C_Apache2__OR_EXEC_ON_READ_>>. e.g.: - req_override => Apache2::OR_ALL | Apache2::OR_EXEC_ON_READ, + req_override => Apache2::Const::OR_ALL | Apache2::OR_EXEC_ON_READ, META: complete the details, which are new to 2.0. @@ -695,7 +695,7 @@ friendliness is to provide a handler for the container end token. In our example, the Apache configuration gears will never see the C<E<lt>/MyContainerE<gt>> token, as our -C<L<Apache2::RAW_ARGS|/C_Apache2__RAW_ARGS_>> handler will read in that +C<L<Apache2::Const::RAW_ARGS|/C_Apache2__RAW_ARGS_>> handler will read in that line and stop reading when it is seen. However in order to catch cases in which the C<E<lt>/MyContainerE<gt>> text appears without a preceding C<E<lt>MyContainerE<gt>> opening section, we need to turn @@ -706,8 +706,8 @@ name => '</MyContainer>', func => __PACKAGE__ . "::MyContainer_END", errmsg => 'end of MyContainer without beginning?', - args_how => Apache2::NO_ARGS, - req_override => Apache2::OR_ALL, + args_how => Apache2::Const::NO_ARGS, + req_override => Apache2::Const::OR_ALL, }, ... my $EndToken = "</MyContainer>"; @@ -724,9 +724,9 @@ -=head3 C<Apache2::FLAG> +=head3 C<Apache2::Const::FLAG> -When C<Apache2::FLAG> is used, Apache will only allow the argument to +When C<Apache2::Const::FLAG> is used, Apache will only allow the argument to be one of two values, C<On> or C<Off>. This string value will be converted into an integer, C<1> if the flag is C<On>, C<0> if it is C<Off>. If the configuration argument is anything other than C<On> or @@ -1022,10 +1022,10 @@ C<@directives> entries, but here for simplicity we have only assigned to the I<L<name|/C_name_>> directive, which is a must. Since all our directives take a single argument, -C<L<Apache2::TAKE1|/C_Apache2__TAKE1_>>, the default +C<L<Apache2::Const::TAKE1|/C_Apache2__TAKE1_>>, the default I<L<args_how|/C_args_how_>>, is what we need. We also allow the directives to appear anywhere, so -C<L<Apache2::OR_ALL|/C_Apache2__OR_ALL_>>, the default for +C<L<Apache2::Const::OR_ALL|/C_Apache2__OR_ALL_>>, the default for I<L<req_override|/C_req_override_>>, is good for us as well. We use the same callback for the directives C<MyPlus>, C<MyAppend> and @@ -1035,10 +1035,10 @@ The C<MyList> directive's callback stores the value in the list, a reference to which is stored in the hash, again using the name of the directive as the key. This approach is usually used when the directive -is of type C<L<Apache2::ITERATE|/C_Apache2__ITERATE_>>, so you may have +is of type C<L<Apache2::Const::ITERATE|/C_Apache2__ITERATE_>>, so you may have more than one value of the same kind inside a single container. But in our example we choose to have it of the type -C<L<Apache2::TAKE1|/C_Apache2__TAKE1_>>. +C<L<Apache2::Const::TAKE1|/C_Apache2__TAKE1_>>. In both callbacks in addition to storing the value in the current I<directory> configuration, if the value is configured in the main @@ -1184,7 +1184,7 @@ } } - return Apache2::OK; + return Apache2::Const::OK; } 1; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]