---
name: "Plack::Middleware::Proxy::Connect"
section: "3pm"
platform: "linux"
package: "libplack-app-proxy-perl"
version: "0.29-1.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Plack::Middleware::Proxy::Connect"
---

# Plack::Middleware::Proxy::Connect(3pm)

Handles the CONNECT method.

## 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
