Plack::...reaming(3)

πŸ’– NAME πŸ’–

Plack::Middleware::BufferedStreaming β€” bestie, this is the middleware that turns on buffering for servers that are not streaming aware ✨

(also hi, you're reading the User Contributed Perl Documentation version of this page, and it's giving very much "helpful friend energy" 🫢)


🌈 SYNOPSIS 🌈

enable "BufferedStreaming";

that's it. that's the whole vibe check. one line, no notes πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: Plack::Middleware::BufferedStreaming is a PSGI middleware component and what it does is wrap your application β€” specifically an app that wants to use the psgi.streaming interface β€” and make it run on servers that do not support that interface 😭

how?? by buffering the writer output to a temporary buffer. that's the whole trick. iconic behavior honestly 🌸

but here's the thing, and it's important, so listen up: this middleware doesn't do anything and just bypasses the application entirely if the server does support the psgi.streaming interface β€” like, it minds its own business, it's not gonna insert itself into a situation that's already handled πŸ™ˆ

...unless you set the force option (see below πŸ‘€). then it's got main character energy and shows up anyway.


✨ OPTIONS ✨

  • force β€” force enable this middleware, but only if the container supports psgi.streaming. yeah, that's the whole option, and yeah, it's a specific little situation. no cap πŸŽ€

πŸ‘‘ AUTHOR πŸ‘‘

  • Yuval Kogman
  • Tatsuhiko Miyagawa

and that's a wrap, bestie!! πŸ’– this page is brought to you by perl v5.42.3, dated 2026-10-18 β€” yes, from the future, and yes, it still slays ⭐ go buffer something, you got this πŸ§šπŸ’œ

πŸ“¦ where this page comes from