📄 apache2::const.3
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings. \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote. \*(C+ will.\" give a nicer C++. Capital omega is used to do unbreakable dashes and.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\. ds -- \(*W-. ds PI pi. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch. ds L" "". ds R" "". ds C` "". ds C' ""'br\}.el\{\. ds -- \|\(em\|. ds PI \(*p. ds L" ``. ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD. Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\. de IX. tm Index:\\$1\t\\n%\t"\\$2"... nr % 0. rr F.\}.el \{\. de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff.if n \{\. ds #H 0. ds #V .8m. ds #F .3m. ds #[ \f1. ds #] \fP.\}.if t \{\. ds #H ((1u-(\\\\n(.fu%2u))*.13m). ds #V .6m. ds #F 0. ds #[ \&. ds #] \&.\}. \" simple accents for nroff and troff.if n \{\. ds ' \&. ds ` \&. ds ^ \&. ds , \&. ds ~ ~. ds /.\}.if t \{\. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u". ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}. \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E. \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'. \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\. ds : e. ds 8 ss. ds o a. ds d- d\h'-1'\(ga. ds D- D\h'-1'\(hy. ds th \o'bp'. ds Th \o'LP'. ds ae ae. ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "mod_perl-2.0.2::docs::api::Apache2::Const 3".TH mod_perl-2.0.2::docs::api::Apache2::Const 3 "2005-10-21" "perl v5.10.0" "User Contributed Perl Documentation".\" For nroff, turn off justification. Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"Apache2::Const \- Perl Interface for Apache Constants.SH "Synopsis".IX Header "Synopsis".Vb 2\& # make the constants available but don\*(Aqt import them\& use Apache2::Const \-compile => qw(constant names ...);\& \& # w/o the => syntax sugar\& use Apache2::Const ("\-compile", qw(constant names ...));\& \& # compile and import the constants\& use Apache2::Const qw(constant names ...);.Ve.SH "Description".IX Header "Description"This package contains constants specific to \f(CW\*(C`Apache\*(C'\fR features..PPmod_perl 2.0 comes with several hundreds of constants, which you don'twant to make available to your Perl code by default, due to \s-1CPU\s0 andmemory overhead. Therefore when you want to use a certain constant youneed to explicitly ask to make it available..PPFor example, the code:.PP.Vb 1\& use Apache2::Const \-compile => qw(FORBIDDEN OK);.Ve.PPmakes the constants \f(CW\*(C`Apache2::Const::FORBIDDEN\*(C'\fR and \f(CW\*(C`Apache2::Const::OK\*(C'\fR availableto your code, but they aren't imported. In which case you need to usea fully qualified constants, as in:.PP.Vb 1\& return Apache2::Const::OK;.Ve.PPIf you drop the argument \f(CW\*(C`\-compile\*(C'\fR and write:.PP.Vb 1\& use Apache2::Const qw(FORBIDDEN OK);.Ve.PPThen both constants are imported into your code's namespace and can beused standalone like so:.PP.Vb 1\& return OK;.Ve.PPBoth, due to the extra memory requirement, when importing symbols, andsince there are constants in other namespaces (e.g.,\&\f(CW\*(C`APR::\*(C'\fR and\&\f(CW\*(C`ModPerl::\*(C'\fR, and non\-mod_perlmodules) which may contain the same names, it's not recommended toimport constants. I.e. you want to use the \f(CW\*(C`\-compile\*(C'\fR construct..PPFinaly, in Perl \f(CW\*(C`=>\*(C'\fR is almost the same as the comma operator. Itcan be used as syntax sugar making it more clear when there is akey-value relation between two arguments, and also it automaticallyparses its lefthand argument (the key) as a string, so you don't needto quote it..PPIf you don't want to use that syntax, instead of writing:.PP.Vb 1\& use Apache2::Const \-compile => qw(FORBIDDEN OK);.Ve.PPyou could write:.PP.Vb 1\& use Apache2::Const "\-compile", qw(FORBIDDEN OK);.Ve.PPand for parentheses-lovers:.PP.Vb 1\& use Apache2::Const ("\-compile", qw(FORBIDDEN OK));.Ve.SH "Constants".IX Header "Constants".ie n .Sh """:cmd_how""".el .Sh "\f(CW:cmd_how\fP".IX Subsection ":cmd_how".Vb 1\& use Apache2::Const \-compile => qw(:cmd_how);.Ve.PPThe \f(CW\*(C`:cmd_how\*(C'\fR constants group is used in\&\f(CW\*(C`Apache2::Module::add()\*(C'\fRand\&\f(CW\*(C`$cmds\->args_how\*(C'\fR..PP\fI\f(CI\*(C`Apache2::Const::FLAG\*(C'\fI\fR.IX Subsection "Apache2::Const::FLAG".PPOne of \fIOn\fR or \fIOff\fR (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::ITERATE\*(C'\fI\fR.IX Subsection "Apache2::Const::ITERATE".PPOne argument, occuring multiple times (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::ITERATE2\*(C'\fI\fR.IX Subsection "Apache2::Const::ITERATE2".PPTwo arguments, the second occurs multiple times (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NO_ARGS\*(C'\fI\fR.IX Subsection "Apache2::Const::NO_ARGS".PPNo arguments at all (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::RAW_ARGS\*(C'\fI\fR.IX Subsection "Apache2::Const::RAW_ARGS".PPThe command will parse the command line itself (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE1\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE1".PPOne argument only (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE12\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE12".PPOne or two arguments (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE123\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE123".PPOne, two or three arguments (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE13\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE13".PPOne or three arguments (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE2\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE2".PPTwo arguments (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE23\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE23".PPTwo or three arguments (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::TAKE3\*(C'\fI\fR.IX Subsection "Apache2::Const::TAKE3".PPThree arguments (fulldescription)..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".ie n .Sh """:common""".el .Sh "\f(CW:common\fP".IX Subsection ":common".Vb 1\& use Apache2::Const \-compile => qw(:common);.Ve.PPThe \f(CW\*(C`:common\*(C'\fR group is for \s-1XXX\s0 constants..PP\fI\f(CI\*(C`Apache2::Const::AUTH_REQUIRED\*(C'\fI\fR.IX Subsection "Apache2::Const::AUTH_REQUIRED".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::DECLINED\*(C'\fI\fR.IX Subsection "Apache2::Const::DECLINED".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::DONE\*(C'\fI\fR.IX Subsection "Apache2::Const::DONE".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::FORBIDDEN\*(C'\fI\fR.IX Subsection "Apache2::Const::FORBIDDEN".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NOT_FOUND\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_FOUND".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::OK\*(C'\fI\fR.IX Subsection "Apache2::Const::OK".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::REDIRECT\*(C'\fI\fR.IX Subsection "Apache2::Const::REDIRECT".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::SERVER_ERROR\*(C'\fI\fR.IX Subsection "Apache2::Const::SERVER_ERROR".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".ie n .Sh """:config""".el .Sh "\f(CW:config\fP".IX Subsection ":config".Vb 1\& use Apache2::Const \-compile => qw(:config);.Ve.PPThe \f(CW\*(C`:config\*(C'\fR group is for \s-1XXX\s0 constants..PP\fI\f(CI\*(C`Apache2::Const::DECLINE_CMD\*(C'\fI\fR.IX Subsection "Apache2::Const::DECLINE_CMD".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".ie n .Sh """:conn_keepalive""".el .Sh "\f(CW:conn_keepalive\fP".IX Subsection ":conn_keepalive".Vb 1\& use Apache2::Const \-compile => qw(:conn_keepalive);.Ve.PPThe \f(CW\*(C`:conn_keepalive\*(C'\fR constants group is used by the(\f(CW\*(C`$c\->keepalive\*(C'\fR)method..PP\fI\f(CI\*(C`Apache2::Const::CONN_CLOSE\*(C'\fI\fR.IX Subsection "Apache2::Const::CONN_CLOSE".PPThe connection will be closed at the end of the current \s-1HTTP\s0 request..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::CONN_KEEPALIVE\*(C'\fI\fR.IX Subsection "Apache2::Const::CONN_KEEPALIVE".PPThe connection will be kept alive at the end of the current \s-1HTTP\s0 request..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::CONN_UNKNOWN\*(C'\fI\fR.IX Subsection "Apache2::Const::CONN_UNKNOWN".PPThe connection is at an unknown state, e.g., initialized but not openyet..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".ie n .Sh """:context""".el .Sh "\f(CW:context\fP".IX Subsection ":context".Vb 1\& use Apache2::Const \-compile => qw(:context);.Ve.PPThe \f(CW\*(C`:context\*(C'\fR group is used by the\&\f(CW\*(C`$parms\->check_cmd_context\*(C'\fRmethod..PP\fI\f(CI\*(C`Apache2::Const::NOT_IN_VIRTUALHOST\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_IN_VIRTUALHOST".PPThe command is not in a <VirtualHost> block..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NOT_IN_LIMIT\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_IN_LIMIT".PPThe command is not in a <Limit> block..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NOT_IN_DIRECTORY\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_IN_DIRECTORY".PPThe command is not in a <Directory> block..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NOT_IN_LOCATION\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_IN_LOCATION".PPThe command is not in a <Location>/<LocationMatch> block..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NOT_IN_FILES\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_IN_FILES".PPThe command is not in a <Files>/<FilesMatch> block..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::NOT_IN_DIR_LOC_FILE\*(C'\fI\fR.IX Subsection "Apache2::Const::NOT_IN_DIR_LOC_FILE".PPThe command is not in a <Files>/<FilesMatch>, <Location>/<LocationMatch> or <Directory> block..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PP\fI\f(CI\*(C`Apache2::Const::GLOBAL_ONLY\*(C'\fI\fR.IX Subsection "Apache2::Const::GLOBAL_ONLY".PP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -