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 the X-Framework header. 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