OpenFra...:Request(3)

πŸ“¦
version 3.05 Β· 2 versions
, in fedora 43

πŸ’– OpenFrame::Segment::HTTP::Request β€” the manual, but make it a group chat πŸ’–

okay so this is OpenFra...:Request(3), a page from the User Contributed Perl Documentation section of the manual (section 3, bestie, we love a library call). It's OpenFrame::Segment::HTTP::Request and it's about to be your new fave pipeline segment, no cap πŸŽ€


✨ NAME ✨

OpenFrame::Segment::HTTP::Request β€” literally just here to create an OpenFrame::Request object out of an HTTP::Request. that's it. that's the job. iconic behavior πŸ’…


🌸 SYNOPSIS 🌸

okay so here's how you actually use it, copy this exactly bestie:

use OpenFrame::Segment::HTTP::Request;
my $response_creator = OpenFrame::Segment::HTTP::Request->new();
$pipeline->add_segment( $request );

see how cute that is? three lines. you use it, you make a new one with ->new(), you shove it into the pipeline with add_segment. slay πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

so OpenFrame::Segment::HTTP::Request inherits from Pipeline::Segment β€” family lineage, we love to see it πŸ‘‘

and what it DOES is take an HTTP::Request object and turn it into an OpenFrame::Request. glow-up of the century honestly ✨

but wait, there's more, because it also gives you the respond() method. and respond() is acting as a get/set method β€” a little toggle situation, if you will β€” that decides whether or not OpenFrame::Segment::HTTP::Request drops an OpenFrame::Segment::HTTP::Response segment onto the pipeline cleanup list. yes, the cleanup list. very demure, very mindful 🧚

and the default? by default respond() is set to a true value. so it's on unless you say otherwise. periodt πŸ’–


🫢 AUTHOR 🫢

this gorgeous piece of code was written by James A. Duncan <jduncan@fotango.com> β€” thank you for your service, king πŸ™


🌈 SEE ALSO 🌈

go read these too, they're the friend group:

  • OpenFrame::Segment::HTTP::Response
  • Pipeline::Segment

ngl if you're building a pipeline and you need to convert an incoming HTTP request into an OpenFrame one, this is THE segment. iykyk πŸ”₯

k bye bestie, ily!! πŸ’–βœ¨πŸŽ€ this little gem is living in perl v5.42.0 and dated 2025-07-25 β€” go forth and pipeline, you absolute main character πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from