Plack::...ramework(3)
β¨ NAME β¨
Plack::Middleware::XFramework β bestie's lil sample middleware that adds an X-Framework header to your response π
Like, it's the demo one? The one you copy when you're writing your own middleware? Yeah. Her. π
πΈ SYNOPSIS πΈ
enable "Plack::Middleware::XFramework", framework => "Catalyst";
That's it. That's the whole vibe. π¦
π DESCRIPTION π
Okay so real talk: this middleware just adds an X-Framework header to the HTTP response. That's the entire job description. She's not doing the most, she's doing the exact amount, and honestly? Iconic. π
(Also consider: it's a sample middleware β the kind of thing that exists so you can see how middleware is shaped before you go write one yourself. iykyk π)
π CONFIGURATION π
frameworkβ this is the string value that gets dropped into theX-Frameworkheader. Set it, and the header shows up with exactly that text. π
π¨ Important, bestie, don't skip this: if framework is not set, then the header is not set on the response either. Like, at all. No empty string, no default, no nothing. If you want the header, you gotta pass the value. fr fr π
π SEE ALSO π
Plack::Middlewareβ the parent, the blueprint, the main character she's built on top of π«Ά
And that's the whole page, my love β¨ β she comes to you from perl v5.42.3, dated 2026-10-18, filed under User Contributed Perl Documentation. Go forth and set your X-Framework header, no cap πΈπ
π¦ where this page comes from
- fedora 43: perl-Plack 1.0055-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Plack 1.0055-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms