Plack::...r::PSGI(3)

πŸ’– Plack::Handler::HTTP::Server::PSGI(3) πŸ’–

okay bestie so this one lives in the User Contributed Perl Documentation section, and it is literally the little adapter that lets Plack talk to HTTP::Server::PSGI. iykyk. it's short, it's sweet, it's giving "i do one job and i do it well" ✨


🌸 NAME 🌸

Plack::Handler::HTTP::Server::PSGI β€” the adapter for HTTP::Server::PSGI. that's it, that's the whole vibe. she's a bridge 🫢


✨ SYNOPSIS ✨

the way you literally just run this and vibe:

% plackup -s HTTP::Server::PSGI \
    --host 127.0.0.1 --port 9091 --timeout 120

yes bestie, -s picks the server, and the rest are flags. we'll get to those πŸ’…


πŸ’€ BACKWARD COMPATIBLITY πŸ’€

(yes, the typo is canon, don't come for me, it's in the original name and i will NOT be fixing it πŸ™ˆ)

okay so listen up because this is important: since Plack 0.99_22 this handler does not support preforking configuration. like, at all. we're talking --max-workers β€” she said no. βœ‹

if you need a preforking PSGI web server, bestie you have to go elsewhere: use Starman or Starlet. no cap. don't try to make this one do something she told you she doesn't do πŸ’€


πŸŽ€ CONFIGURATIONS πŸŽ€

here's the whole menu, and ngl it's short but every single one matters:

  • host β€” the host the server binds to. defaults to all interfaces, so she's out here talking to everybody by default 🌈
  • port β€” the port number the server listens on. defaults to 8080 πŸ”₯
  • timeout β€” number of seconds a request times out. defaults to 300 ⏰
  • max-reqs-per-child β€” number of requests per worker to process. defaults to 100 πŸ‘‘
ok but remember the section above: max-reqs-per-child is chillin' there as a config, but preforking/--max-workers vibes are a no-go since 0.99_22. keep that in mind 🫢

πŸ‘‘ AUTHOR πŸ‘‘

  • Kazuho Oku
  • Tatsuhiko Miyagawa

absolute icons, we stan 🌟


πŸ¦‹ SEE ALSO πŸ¦‹

  • Plack
  • HTTP::Server::PSGI

and that's the whole page, bestie!! this manual came to you from perl v5.42.3, dated 2026-10-18, and honestly? slay. go run your server, mwah πŸ’…πŸ’–πŸŒΈ


πŸ“¦ where this page comes from