FastCGI/Constant.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« pm_filter.pl ↑ Summary
1 #
2 #
3 # Copyright (C) 2006-2010 Andrew Speer <andrew@webdyne.org>. All rights
4 # reserved.
5 #
6 # This file is part of WebDyne::Request::FastCGI
7 #
8 # WebDyne::Session is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #
22 #
23 package WebDyne::Request::FastCGI::Constant;
24  
25  
26 # Pragma
27 #
28 1 ▶use strict qw(vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 ▶use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT %Constant);
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶no warnings qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 local $^W=0;
32  
33  
34 # Version information. Must be all on one line
35 #
36 1 $VERSION='1.002';
37  
38  
39 # The guts
40 #
41 1 %Constant = (
42  
43  
44 # A placeholder for per-location WebDyne settings, e.g., WebDyneHandler, etc.
45 #
46 WEBDYNE_DIR_CONFIG => undef,
47  
48  
49 # Warn on errors ? Some FastCGI implementations write to error logs (good), others send to client (bad)
50 #
51 WEBDYNE_FASTCGI_WARN_ON_ERROR => undef,
52  
53  
54 # Max requests on socket if not given see FCGI::OpenSocket
55 #
56 WEBDYNE_FASTCGI_BACKLOG => 4,
57  
58  
59 );
60  
61  
62 # Export constants to namespace, place in export tags
63 #
64 1 require Exporter;
65 1 require WebDyne::Constant;
66 1 @ISA=qw(Exporter WebDyne::Constant);
67 1 +__PACKAGE__->local_constant_load(\%Constant);
68 1 map { ${$_}=$Constant{$_} } keys %Constant;
69 1 @EXPORT=map { '$'.$_ } keys %Constant;
70 1 @EXPORT_OK=@EXPORT;
71 1 %EXPORT_TAGS=(all => [@EXPORT_OK]);
72 1 $_=\%Constant;
« pm_filter.pl ↑ Summary