FCGI::...Header(3pm)

πŸ’– NAME πŸ’–

FCGI::Client::RecordHeader β€” it's the record header object for FCGI, bestie. That's the whole vibe. πŸŽ€

This page lives in the User Contributed Perl Documentation section, so you already know it's giving community-loved, hand-crafted energy. ✨

🌸 SYNOPSIS 🌸

my $header = FCGI::Client::RecordHeader->new(raw => $raw);
say $header->type;

That's it. Two lines. You're already slaying. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: this module is the record header class for FCGI::Client. It's not the main character of the FastCGI story, it's the header β€” the little label at the front that tells you what the actual record is about. Lowkey essential. Highkey underrated. πŸ‘‘

πŸ“ ATTRIBUTES πŸ“

  • raw β€” the raw string of the record header. The size of the record header is defined over in FCGI::Client::Constant::FCGI_HEADER_LEN, so if you're wondering how many bytes you're dealing with, that's your girl. πŸ’œ

⭐ INSTANCE METHOD ⭐

Here's the roster β€” each one hands you a different field of the record header:

  • $self->request_id() β€” returns the record header's request id field.
  • $self->type() β€” returns the record header's type field.
  • $self->content_length() β€” returns the record header's content length field.
  • $self->padding_length() β€” returns the record header's padding length field.

These methods return each field of the record header. Every one of them. No crumbs left behind. 🫢

🌈 SEE ALSO 🌈

  • FCGI::Client β€” go say hi, that's the parent vibe. 🌸

And that's a wrap, bestie! 🧚 This absolute icon of a page is perl v5.42.0, dated 2018-07-17 β€” a whole vintage moment that still ate, no cap. 😭πŸ”₯ Go build something iconic with it. βœ¨πŸ¦‹

πŸ“¦ where this page comes from