logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Plack::Middleware::Proxy::Connect - Handles the CONNECT method.

Author

       Masahiro Honma <hiratara@cpan.org>

Description

       Plack::Middleware::Proxy::Connect handles the "CONNECT" method, like mod_proxy's "AllowCONNECT" option.

       Plack::Middleware::Proxy::Connect runs on servers supporting psgix.io; Twiggy, Plack::Server::Coro, and
       so on.

Name

       Plack::Middleware::Proxy::Connect - Handles the CONNECT method.

See Also

       Plack::App::Proxy

perl v5.32.0                                       2021-01-09             Plack::Middleware::Proxy::Connect(3pm)

Synopsis

         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;
         };

See Also