OpenFrame::Request(3)
π OpenFrame::Request β the manual page, but make it cute π
okay so bestie, welcome to OpenFrame::Request(3) from the User Contributed Perl Documentation section π this is the whole thing, no skips, no cuts, we're reading it together π
β¨ NAME β¨
OpenFrame::Request β an abstract request class π¦
like, it's the blueprint. the moment. the concept, not the concrete thing. periodt.
πΈ SYNOPSIS πΈ
here's the vibe in code form, copy it exactly bestie:
use OpenFrame;
my $uri = URI->new("http://localhost/");
my $r = OpenFrame::Request->new();
$r->uri('http://www.example.com/');
$r->arguments({ colour => 'red' });
$r->cookies($cookies);
print "URI: " . $r->uri();
my $args = $r->arguments();
my $cookies = $r->cookies();
look at her go π she's setting a URI, setting arguments, setting cookies, then getting all of it right back. main character energy fr fr.
π DESCRIPTION π
OpenFrame::Request represents requests inside OpenFrame. and what is a request, you ask? it's some kind of request for information, given a URI. that's the whole deal π«
lowkey abstract β you're meant to build on top of this, not just vibe with it raw. iykyk.
π METHODS π
π new()
the new() method creates a brand new OpenFrame::Request object β¨ fresh out the box, no notes.
my $r = OpenFrame::Request->new();
π uri()
this method gets and sets the URI π both directions, she's versatile.
print "URI: " . $r->uri();
$r->uri(URI->new("http://foo.com/"));
π cookies()
this method gets and sets the OpenFrame::Cookies object associated with this request π yes bestie, the cookies are a whole object, not just crumbs.
my $cookietin = $r->cookies();
$r->cookies($cookietin);
π arguments()
this method gets and sets the argument hash reference associated with this request π hash ref specifically, don't come at her with anything else.
my $args = $r->arguments();
$r->arguments({colour => "blue"});
π«Ά AUTHOR π«Ά
James Duncan <jduncan@fotango.com> β thank you for your service, legend π
and that's the page!! no cap, every single bit is here π
perl v5.42.0 Β· 2025-07-25 Β· OpenFrame::Request(3)
mwah π go write some requests bestie, you got this π¦β¨
π¦ 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