App-PureProxy
view release on metacpan or search on metacpan
https_proxy=http://localhost:5000/ lwp-request -m get https://metacpan.org/
DESCRIPTION
This is pure-Perl HTTP proxy server which can be run on almost every
Perl installation.
It uses thrall pre-threading HTTP server if Perl supports threads or
starlight pre-forking HTTP server otherwise.
It supports SSL and TLS if IO::Socket::SSL is installed and IPv6 if
IO::Socket::IP is installed.
It can be fat-packed and then run with any system with standard Perl
interpreter without installing other packages. See examples directory
for fat-packed version of PureProxy script.
PureProxy is an application that accepts arguments of plackup binary
and HTTP servers like thrall or starlight.
INSTALLATION
--spawn-interval
If set, worker processes will not be spawned more than once every given
second. Also, when SIGHUP is being received, no more than one worker
process will be collected every given second. This feature is useful
for doing a "slow restart". (default: none)
--ssl
Enables SSL support. The IO::Socket::SSL module is required. (default:
0)
--ssl-ca-file
Specifies the path to the SSL CA certificate file which will be a part
of server's certificate chain. (default: none)
--ssl-cert-file
Specifies the path to the SSL certificate file. (default: none)
Specifies the path to the SSL CA certificate file for client
verification. (default: none)
--ssl-key-file
Specifies the path to the SSL key file. (default: none)
--ssl-verify-mode
Specifies the verification mode for the client certificate. See
"SSL_verify_mode" in IO::Socket::SSL for details. (default: 0)
--timeout
Seconds until timeout. (default: 300)
--traffic-log
Enables Plack::Middleware::TrafficLog middleware that logs detailed
information about headers and the body.
```
## DESCRIPTION
This is pure-Perl HTTP proxy server which can be run on almost every Perl
installation.
It uses [thrall](https://metacpan.org/pod/thrall) pre-threading HTTP server if Perl supports threads or
[starlight](https://metacpan.org/pod/starlight) pre-forking HTTP server otherwise.
It supports SSL and TLS if [IO::Socket::SSL](https://metacpan.org/pod/IO%3A%3ASocket%3A%3ASSL) is installed and IPv6 if
[IO::Socket::IP](https://metacpan.org/pod/IO%3A%3ASocket%3A%3AIP) is installed.
It can be fat-packed and then run with any system with standard Perl
interpreter without installing other packages. See `examples` directory for
fat-packed version of PureProxy script.
PureProxy is an application that accepts arguments of [plackup](https://metacpan.org/pod/plackup) binary and
HTTP servers like [thrall](https://metacpan.org/pod/thrall) or [starlight](https://metacpan.org/pod/starlight).
## INSTALLATION
## --spawn-interval
If set, worker processes will not be spawned more than once every given
second. Also, when _SIGHUP_ is being received, no more than one worker
process will be collected every given second. This feature is useful for
doing a "slow restart". (default: none)
## --ssl
Enables SSL support. The [IO::Socket::SSL](https://metacpan.org/pod/IO%3A%3ASocket%3A%3ASSL) module is required. (default: 0)
## --ssl-ca-file
Specifies the path to the SSL CA certificate file which will be a part of
server's certificate chain. (default: none)
## --ssl-cert-file
Specifies the path to the SSL certificate file. (default: none)
Specifies the path to the SSL CA certificate file for client verification.
(default: none)
## --ssl-key-file
Specifies the path to the SSL key file. (default: none)
## --ssl-verify-mode
Specifies the verification mode for the client certificate.
See ["SSL\_verify\_mode" in IO::Socket::SSL](https://metacpan.org/pod/IO%3A%3ASocket%3A%3ASSL#SSL_verify_mode) for details. (default: 0)
## --timeout
Seconds until timeout. (default: 300)
## --traffic-log
Enables [Plack::Middleware::TrafficLog](https://metacpan.org/pod/Plack%3A%3AMiddleware%3A%3ATrafficLog) middleware that logs detailed
information about headers and the body.
requires 'IO::Socket::IP';
requires 'Plack', '0.9920';
requires 'Plack::App::Proxy::Backend::HTTP::Tiny';
requires 'Plack::Middleware::Proxy::Connect::IO';
requires 'Plack::Middleware::Proxy::Requests';
requires 'Starlight', '0.0501';
recommends 'Plack::Middleware::TrafficLog';
recommends 'Thrall', '0.0402';
suggests 'IO::Socket::SSL';
suggests 'Net::SSLeay', '1.49';
on configure => sub {
requires 'Module::Build';
requires 'Module::CPANfile';
requires 'Software::License';
};
on test => sub {
requires 'Test::More', '0.88';
script/pureproxy.pl view on Meta::CPAN
=for markdown ```
=head1 DESCRIPTION
This is pure-Perl HTTP proxy server which can be run on almost every Perl
installation.
It uses L<thrall> pre-threading HTTP server if Perl supports threads or
L<starlight> pre-forking HTTP server otherwise.
It supports SSL and TLS if L<IO::Socket::SSL> is installed and IPv6 if
L<IO::Socket::IP> is installed.
It can be fat-packed and then run with any system with standard Perl
interpreter without installing other packages. See F<examples> directory for
fat-packed version of PureProxy script.
PureProxy is an application that accepts arguments of L<plackup> binary and
HTTP servers like L<thrall> or L<starlight>.
=cut
script/pureproxy.pl view on Meta::CPAN
=head2 --spawn-interval
If set, worker processes will not be spawned more than once every given
second. Also, when I<SIGHUP> is being received, no more than one worker
process will be collected every given second. This feature is useful for
doing a "slow restart". (default: none)
=head2 --ssl
Enables SSL support. The L<IO::Socket::SSL> module is required. (default: 0)
=head2 --ssl-ca-file
Specifies the path to the SSL CA certificate file which will be a part of
server's certificate chain. (default: none)
=head2 --ssl-cert-file
Specifies the path to the SSL certificate file. (default: none)
script/pureproxy.pl view on Meta::CPAN
Specifies the path to the SSL CA certificate file for client verification.
(default: none)
=head2 --ssl-key-file
Specifies the path to the SSL key file. (default: none)
=head2 --ssl-verify-mode
Specifies the verification mode for the client certificate.
See L<IO::Socket::SSL/SSL_verify_mode> for details. (default: 0)
=head2 --timeout
Seconds until timeout. (default: 300)
=head2 --traffic-log
Enables L<Plack::Middleware::TrafficLog> middleware that logs detailed
information about headers and the body.
( run in 0.507 second using v1.01-cache-2.11-cpan-4d50c553e7e )