Plack::Middleware::Proxy::Connect - Handles the CONNECT method.
use Plack::Builder; use Plack::App::Proxy; builder { enable "Proxy::Connect"; enable sub { my $app = shift; return sub { my $env = shift; ($env->{'plack.proxy.url'} = $env->{REQUEST_URI}) =~ s|^/||; $app->( $env ); }; }; Plack::App::Proxy->new->to_app; };
Plack::Middleware::Proxy::Connect handles the CONNECT method, like mod_proxy's AllowCONNECT option.
CONNECT
AllowCONNECT
Plack::Middleware::Proxy::Connect runs on servers supporting psgix.io; Twiggy, Plack::Server::Coro, and so on.
Masahiro Honma <hiratara@cpan.org>
Plack::App::Proxy
To install Plack::App::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::Proxy
CPAN shell
perl -MCPAN -e shell install Plack::App::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.