FCGI::...Factory(3pm)

πŸ’… FCGI::Client::RecordFactory(3pm) β€” like, the FCGI record factory, bestie

Okay so picture this: it's the FCGI::Client::RecordFactory page from the User Contributed Perl Documentation, and it is literally just a little factory that builds FCGI records for you. That's the whole vibe. It's giving "small module, big main character energy" ✨


🌸 NAME 🌸

FCGI::Client::RecordFactory β€” an FCGI record factory. Yep, that's it, that's the job. She makes records. She slays. Periodt πŸ’…


πŸŽ€ HIGH LEVEL API METHODS πŸŽ€

This is the easy-breezy tier, the one you reach for when you just want it to work.

  • FCGI::Client::RecordFactory->create_request($reqid, $env, $content); β€” this one creates a whole set of request records for you 🫢
    • $env is your environment variables, same as CGI. Like, exactly the same deal.
    • $content is the request body.
    • It returns a string of request records. That's it. That's the return value.
    • And then you can send it to socket 😌 go off.

πŸ¦‹ LOW LEVEL API METHODS πŸ¦‹

Now we're in the build-it-yourself aisle, bestie. These are the individual pieces in case you wanna assemble stuff by hand πŸ’€

  • FCGI::Client::RecordFactory->build_begin_request($reqid, FCGI_RESPONDER, $flags); β€” builds an FCGI_BEGIN_REQUEST record. Iconic. Foundational. The opening number πŸ”₯
  • FCGI::Client::RecordFactory->build_params($reqid, %$env) β€” builds an FCGI_PARAMS record, feeding it your env hash. No cap, that's the whole thing.
  • FCGI::Client::RecordFactory->build_stdin($reqid, $content); β€” builds an FCGI_STDIN record from your content. Chef's kiss πŸ“

🌈 SEE ALSO 🌈

  • FCGI::Client β€” go look at her, she's the whole reason this little factory exists πŸ’œ

πŸ’– ngl bestie, that's the entire page. Short, sweet, and every single flag and method is accounted for. Nothing skipped, nothing invented. Vibe check passed.

~ cute lil sign-off ~ 🧚 This beauty is from perl v5.42.0, dated 2018-07-17, and it lives in the FCGI::...Factory(3pm) corner of the man-page universe. Mwah πŸ’‹ see you in the next one, bestie! πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from