OpenFrame::Request(3)

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

πŸ’– 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