leedo > Plack-App-Proxy-0.25 > Plack::Middleware::Proxy::Connect

Download:
Plack-App-Proxy-0.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source   Latest Release: Plack-App-Proxy-0.29

NAME ^

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

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

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.

AUTHOR ^

Masahiro Honma <hiratara@cpan.org>

SEE ALSO ^

Plack::App::Proxy

syntax highlighting: