Plack:...Connect(3pm)
π Plack::Middleware::Proxy::Connect β the manual, but make it cute
okay bestie, welcome to the Plack::Middleware::Proxy::Connect page from the perl docs (manual section 3pm, if you're keeping score π). it's a tiny page. it's a powerful page. let's get into it β¨
πΈ NAME πΈ
Plack::Middleware::Proxy::Connect β bestie, it handles the CONNECT method. that's it. that's the whole name. periodt π
β¨ SYNOPSIS β¨
here's the whole vibe, copy it exactly, don't freestyle:
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;
};
no cap, that's the setup. the enable "Proxy::Connect" line is the main character here π
π¦ DESCRIPTION π¦
okay so. Plack::Middleware::Proxy::Connect handles the CONNECT method β y'know, the way mod_proxy's AllowCONNECT option does it. same energy, different era π
and here's the important part, bestie, listen up:
Plack::Middleware::Proxy::Connectruns on servers supportingpsgix.ioβ so like Twiggy, Plack::Server::Coro, and so on. if your server isn't givingpsgix.io, this middleware simply cannot sit with you π«Ά
π AUTHOR π
Masahiro Honma <hiratara@cpan.org> β thank you for your service, icon π«‘β¨
π SEE ALSO π
Plack::App::Proxyβ go read it, it's the whole reason this middleware is here, iykyk π
and that's the page, bestie!! this lil cutie came from perl v5.32.0, dated 2021-01-09 π slay, go proxy something responsibly, mwah ππ
π¦ where this page comes from
- debian bookworm: libplack-app-proxy-perl 0.29-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libplack-app-proxy-perl 0.29-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libplack-app-proxy-perl 0.29-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libplack-app-proxy-perl 0.29-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms