OpenFra...:Request(3)
π 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::ResponsePipeline::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
- fedora 43: perl-OpenFrame 3.05-55.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms