Plack:...:Header(3pm)
β¨ Plack::...::Header β¨
okay bestie, we're looking at Plack::Middleware::Header from the Perl docs, version 3pm β and yes the manual name really is spelled Plack:...:Header(3pm), no that's not a typo, that's just how the page is named, iykyk π
π NAME π
Plack::Middleware::Header β it modifies HTTP response headers. that's the whole job. that's the vibe. periodt.
π¦ SYNOPSIS π¦
here's the whole thing, copy it exactly bestie, don't freestyle:
use Plack::Builder;
my $app = sub {['200', [], ['hello']]};
builder {
enable 'Header',
set => ['X-Plack-One' => '1'],
append => ['X-Plack-Two' => '2'],
unset => ['X-Plack-Three'];
$app;
};
so you got your app, you got your builder, and you enable the Header middleware with set, append and unset doing their little header dance. iconic honestly πΈ
π DESCRIPTION π
the entire description on this page is, and I cannot stress this enough, literally just:
Plack::Middleware::Header
that's it. that's the description. no further elaboration, no notes, the module said "my name is enough" and honestly? main character energy π
π AUTHOR π
- Masahiro Chiba π«Ά
π LICENSE π
this library is free software β you can redistribute it and/or modify it under the same terms as Perl itself. slay, go wild, legally π
π§ SEE ALSO π§
Plack::MiddlewarePlack::Builder
go read those too, they're the friend group this module runs with π«
okay that's the whole page!! documented under perl v5.34.0, dated 2022-06-16, and filed as Plack:...:Header(3pm) β bye bestie, go set some headers π β¨
π¦ where this page comes from
- debian bookworm: libplack-middleware-header-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libplack-middleware-header-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libplack-middleware-header-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libplack-middleware-header-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libplack-middleware-header-perl 0.04-2 Β· 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