Plack::...Runtime(3)

πŸ’– Plack::Middleware::Runtime β€” the vibe is: how fast was that tho

okay bestie, listen. this is Plack::Middleware::Runtime, a Plack middleware component that sets your app's response time β€” in seconds β€” into the X-Runtime HTTP response header. that's it. that's the whole job. it's giving "effortlessly good at one thing" and honestly? iconic. ✨


🌸 SYNOPSIS

enable "Runtime";

one line. one single line of code and suddenly every response is like "hey btw i took this long πŸ’…". no cap.


πŸ¦‹ DESCRIPTION

Plack::Middleware::Runtime is a Plack middleware component that sets the application's response time (in seconds) in the X-Runtime HTTP response header.

so like, every time your app hands back a response, this lil cutie tucks the elapsed time in seconds into the X-Runtime header on the way out. πŸŽ€ it's not doing anything fancy, it's not being dramatic, it's just timing your app and telling the truth. main character energy but make it quiet luxury.


✨ OPTIONS ✨

  • header_name β€” the name of the header. defaults to X-Runtime. so if you want it to live in a different header for whatever reason, this is the knob you turn. otherwise just leave it alone, she's fine. 🫢

πŸ‘‘ AUTHOR

Tatsuhiko Miyagawa β€” the legend. the icon. the moment. 🫑


πŸ”₯ SEE ALSO

  • Time::HiRes
  • Rack::Runtime

iykyk. go read both, they're like cousins at the same family reunion. 🌈


okay that's the whole page babe, you ate that. this was perl v5.42.3, dated 2026-10-18, from the Plack::...Runtime(3) manual β€” slay, bye, go set some headers πŸ’–βœ¨

πŸ“¦ where this page comes from