view release on metacpan or search on metacpan
Dynagzip.pm view on Meta::CPAN
use constant MIN_CHUNK_SIZE_PP_DEFAULT => 8192; # for no gzip case
use constant MAX_ATTEMPTS_TO_TRY_FLOCK => 10; # max limit seconds to sleep, waiting for flock()
use constant PAGE_LIFE_TIME_DEFAULT => 300; # sec
sub can_gzip_for_this_client {
# This is the only place where I decide whether or not the main request
# could be served with gzip compression.
# call model: my $can_gzip = can_gzip_for_this_client($r);
my $r = shift;
my $result = undef; # false is default
local $^W = 0; # no warnings when Accept-Encoding does not exist:
Dynagzip.pm view on Meta::CPAN
creation/compression, media data transmission, and the client side data
decompression/presentation in order to provide end users with the partially
displayed content as soon as it's possible in particular conditions of the
user's connection.
At the time we decided to go for dynamic compression there were no
appropriate software on the market. Even later in
February 2002 Nicholas Oxhøj wrote to the mod_perl mailing list about his
experience of finding Apache gzipper for the streaming outgoing content:
=for html
view all matches for this distribution
view release on metacpan or search on metacpan
ApacheSoftwareLicense view on Meta::CPAN
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/Emulator/Apache.pm view on Meta::CPAN
}
sub headers_in {
my $self = shift;
# Create the headers table if necessary. Decided how to build it based on
# information here:
# http://cgi-spec.golux.com/draft-coar-cgi-v11-03-clean.html#6.1
#
# Try to get as much info as possible from CGI.pm, which has
# workarounds for things like the IIS PATH_INFO bug.
view all matches for this distribution
view release on metacpan or search on metacpan
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
view all matches for this distribution
view release on metacpan or search on metacpan
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of ...
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution syst...
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution ...
view all matches for this distribution
view release on metacpan or search on metacpan
property right claims or to contest validity of any such claims; this section has
the sole purpose of protecting the integrity of the free software distribution
system, which is implemented by public license practices. Many people have
made generous contributions to the wide range of software distributed through
that system in reliance on consistent application of that system; it is up to the
author/donor to decide if he or she is willing to distribute software through any
other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a
consequence of the rest of this License.
view all matches for this distribution
view release on metacpan or search on metacpan
A new option has been added:
PerlSetVar GalleryCacheDir '/var/tmp/Apache-Gallery/'
GalleryCacheDir is optional but you can use it to decide
where Apache::Gallery should place the scaled pictures.
For users upgrading from 0.3 to 0.4:
Two new options have been added, they are both optional:
view all matches for this distribution
view release on metacpan or search on metacpan
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/GzipChain.pm view on Meta::CPAN
config variable ForceGzip is set. To determine if the browser is able
to understand us we check its I<Accept-Encoding> header.
The module works without influencing the other handlers in the chain.
The only thing that can be noticed by other handlers is that the
response header 'Content-Encoding' has been set. If GzipChain decides
not to do any compression, it just declines and doesn't even register
itself for the output chain.
GzipChain compresses every single buffer content it receives via the
output chain separately according to the GZIP specification (RFC
view all matches for this distribution
view release on metacpan or search on metacpan
HTMLView.pm view on Meta::CPAN
## Update database if requested
if (defined $actions{$file}) {
$actions{$file}->($q,$r);
## Decide what to show next
$file=$q->param('_done');
if (!defined $file || lc($file) eq 'ref') {$file=$r->headers_in->{'Referer'};}
## Send client to that fmt
$r->header_out(Location=>$file);
view all matches for this distribution
view release on metacpan or search on metacpan
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
INSTALLATION
To install this module type the following:
view all matches for this distribution
view release on metacpan or search on metacpan
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
]
INSTALLATION
view all matches for this distribution
view release on metacpan or search on metacpan
property right claims or to contest validity of any such claims; this section has
the sole purpose of protecting the integrity of the free software distribution
system, which is implemented by public license practices. Many people have
made generous contributions to the wide range of software distributed through
that system in reliance on consistent application of that system; it is up to the
author/donor to decide if he or she is willing to distribute software through any
other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a
consequence of the rest of this License.
view all matches for this distribution
view release on metacpan or search on metacpan
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
]
INSTALLATION
view all matches for this distribution
view release on metacpan or search on metacpan
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
INSTALLATION
To install this module type the following:
view all matches for this distribution
view release on metacpan or search on metacpan
A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.
INSTALLATION
To install this module type the following:
view all matches for this distribution
view release on metacpan or search on metacpan
Language/Constants.pm view on Meta::CPAN
should be generated in the logs.
=item L_DECLINED
return with this value in the B<initialize> routine to indicate you are not interested
in being called to answer queries for that package. How you decide this is up to
you.
=back
Remember to return B<undef> when a search retrieves nothing and all will be ok.
view all matches for this distribution
view release on metacpan or search on metacpan
that should be provided before the module is installed.
A README file is required for CPAN modules since CPAN extracts the README
file from a module distribution so that people browsing the archive
can use it get an idea of the modules uses. It is usually a good idea
to provide version information here so that people can decide whether
fixes for the module are worth downloading.
INSTALLATION
To install this module, run the following commands:
view all matches for this distribution
view release on metacpan or search on metacpan
that should be provided before the module is installed.
A README file is required for CPAN modules since CPAN extracts the README
file from a module distribution so that people browsing the archive
can use it get an idea of the modules uses. It is usually a good idea
to provide version information here so that people can decide whether
fixes for the module are worth downloading.
INSTALLATION
To install this module, run the following commands:
view all matches for this distribution
view release on metacpan or search on metacpan
Auth_DBI_authoritative < on / off> (Authentication and Authorization)
Default is 'on'. When set 'on', there is no fall-through to other
authentication methods if the authentication check fails. When this directive
is set to 'off', control is passed on to any other authentication modules. Be
sure you know what you are doing when you decide to switch it off.
=item *
Auth_DBI_nopasswd < on / off > (Authentication only)
Default is 'off'. When set 'on' the password comparison is skipped if the
password retrieved from the database is empty, i.e. allow any password. This is
'off' by default to ensure that an empty Auth_DBI_pwd_field does not allow people
to log in with a random password. Be sure you know what you are doing when you
decide to switch it on.
=item *
Auth_DBI_encrypted < on / off > (Authentication only)
Default is 'on'. When set to 'on', the password retrieved from the database
view all matches for this distribution
view release on metacpan or search on metacpan
MIMEMapper.pm view on Meta::CPAN
The current logic checks AddHandler for something that looks like
a Perl module, so
AddHandler server-parsed .shtml
still works. The criterion for deciding if Apache::MIMEMapper
intercepts the request is whether the handler is in the form
Foo::Bar - it checks for '::'. This is not ideal, but simple
and sufficient for most cases.
=head1 FEATURES/BUGS
view all matches for this distribution
view release on metacpan or search on metacpan
example, you might execute this command
cddbcmd cddb read soundtrack cb115c11 > INDEX
to create an INDEX file for the Mulholland Drive soundtrack. The
32-bit disc ID can be obtained with a program such as cd-discid.
=item 8. Set up an information cache directory (optional)
In order to generate its MP3 listing, Apache::MP3 must open each sound
file, extract its header information, and close it. This is time
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/MagicPOST.pm view on Meta::CPAN
=head1 DESCRIPTION
***********************************************************************
NOTE: This module is not working as I intended since the poking into
the POST data makes the data unavailable for subsequent modules. To
make sure that you do not accidentally run into this, the handler method
has been renamed to _handler(). I'll change this module to work with
Apache2 (where the intended behavior is possible) in a while.
***********************************************************************
view all matches for this distribution
view release on metacpan or search on metacpan
License.GPL view on Meta::CPAN
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/PageKit/View.pm view on Meta::CPAN
(my $page_id_dir = $page_id) =~ s![^/]*$!!;
$component_id = $page_id_dir . $component_id;
while ($component_id =~ s![^/]*/\.\./!!) {};
}
my $cid_key = join '', $component_id, sort %params;
unless ( $view->{component_ids_hash}->{$cid_key}++ ) {
push @{ $view->{component_ids} }, [ $component_id , \%params ];
}
# check for recursive pkit_components
if($view->{component_ids_hash}->{$cid_key} > 100){
die "Likely recursive PKIT_COMPONENTS for component_id $component_id and giving up.";
}
my $template_ref = $view->_load_component($page_id, $component_id, $pkit_view, \%params);
return $$template_ref;
view all matches for this distribution
view release on metacpan or search on metacpan
ProxyConf.pm view on Meta::CPAN
<head>
<title>Output of ProxyConf.pm with debug option</title>
<style type="text/css">
code {
font-family: LucidaTypewriter, Courier, "Courier New", monospace;
color: #990000;
}
</style>
</head>
<body bgcolor="#FFFFFF">
view all matches for this distribution
view release on metacpan or search on metacpan
ProxyRewrite.pm view on Meta::CPAN
# implied warranties or conditions of merchantability and fitness
# for a particular purpose;
#
# ii) effectively excludes on behalf of all Contributors all
# liability for damages, including direct, indirect, special,
# incidental and consequential damages, such as lost profits;
# iii) states that any provisions which differ from this Agreement
# are offered by that Contributor alone and not by any other party;
# and
#
# iv) states that source code for the Program is available from such
ProxyRewrite.pm view on Meta::CPAN
$response->content($newbuf);
}
###############################################################################
###############################################################################
# dealwithtag: decides if there a URL in a tag and sends it to be rewritten
###############################################################################
###############################################################################
sub dealwithtag {
my ($r, $remote_site, $tagblock, $mapref) = @_;
my @blocks;
view all matches for this distribution
view release on metacpan or search on metacpan
Don't write a new wrapper, take one of the existing wrappers and put in your
av tool command. ;-)
There are basically two kinds of wrappers:
The wrapper for clamav, sophos and mcafee call the av command via perl
open call and read stdout of the av command and decide on the return code
if the file was infected, suspicious or clean.
The RAV wrapper is built with expect, because RAV tries a TCGETS ioctl and
segfaults if no pty is present, but decisions are made on the same codes.
In general the open version should be enough.
The solutions provided for the integration of commercial av scanners into
open source proxy servers were rather ugly.
SQUID+SQIRM+ApacheCGI+WGET is the worst I can remember. Other projects
provided patches for old and outdated squid caches and/or need a daemon
to scan the files.
I decided for a solution in mod_perl and Apache at the point I found
the ProxyPass Example in "Writing Apache Mopdules with Perl and C" from O'Reily and the easy way to move the request and response headers between Apache and
LWP::UserAgent.
Timeouts
--------
view all matches for this distribution
view release on metacpan or search on metacpan
property right claims or to contest validity of any such claims; this section has
the sole purpose of protecting the integrity of the free software distribution
system, which is implemented by public license practices. Many people have
made generous contributions to the wide range of software distributed through
that system in reliance on consistent application of that system; it is up to the
author/donor to decide if he or she is willing to distribute software through any
other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a
consequence of the rest of this License.
view all matches for this distribution
view release on metacpan or search on metacpan
use Module::Build;
# Adapted from http://search.cpan.org/src/PAULDOOM/Apache-AppSamurai-1.01/Build.PL
# Thx pauldoom!
#
# Decide right now if we are shooting for a mod_perl 1.x
# or mod_perl 2.x install. Defaults to mod_perl 2.x.
# This is to have a proper set of requirements in place
# so CPAN and others will behave.
my @modperlreq = ();
if (eval{require mod_perl2;}) {
view all matches for this distribution