Plack:...:Status(3pm)
β¨ NAME β¨
Plack::Middleware::Status β it's the Plack Middleware that maps urls to status code-driven responses π like it literally takes a url pattern and says "bestie, this one gets a 501, no notes"
Okay so we're in the Plack:...:Status(3pm) manual page, and honestly? She's short, she's sweet, she's iconic π
πΈ VERSION πΈ
version 1.101150 β that's the one, that's the girlie π«Ά
π¦ SYNOPSIS π¦
okay so picture this, you got your app.psgi and you just wanna yeet certain urls straight to a status code, right? watch:
# app.psgi
use Plack::Builder;
my $app = sub {
# ...
};
builder {
enable 'Status', path => qr{/not-implemented}, status => 501;
$app;
};
the way that enable 'Status', path => qr{/not-implemented}, status => 501; just does that π so clean, so demure, so mindful π§
π AUTHOR π
Patrick Donelan <pat@patspam.com> β the icon, the moment, the legend π«‘π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Patrick Donelan. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. fr fr, go off, do whatever, it's free π β¨
and that's the whole vibe bestie π this was perl v5.34.0, dated 2022-06-16, and yeah the footer is still out here being Plack:...:Status(3pm) β periodt ππ¦ no cap, that's the whole page, love that for us ππΈ
π¦ where this page comes from
- debian bookworm: libplack-middleware-status-perl 1.101150-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libplack-middleware-status-perl 1.101150-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libplack-middleware-status-perl 1.101150-3 Β· 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