1OpenFrame::Request(3) User Contributed Perl DocumentationOpenFrame::Request(3)
2
3
4

NAME

6       OpenFrame::Request - An abstract request class
7

SYNOPSIS

9         use OpenFrame;
10         my $uri = URI->new("http://localhost/");
11         my $r = OpenFrame::Request->new();
12         $r->uri('http://www.example.com/');
13         $r->arguments({ colour => 'red' });
14         $r->cookies($cookies);
15         print "URI: " . $r->uri();
16         my $args = $r->arguments();
17         my $cookies = $r->cookies();
18

DESCRIPTION

20       "OpenFrame::Request" represents requests inside OpenFrame. Requests
21       represent some kind of request for information given a URI.
22

METHODS

24   new()
25       The new() method creates a new "OpenFrame::Request" object.
26
27         my $r = OpenFrame::Request->new();
28
29   uri()
30       This method gets and sets the URI.
31
32         print "URI: " . $r->uri();
33         $r->uri(URI->new("http://foo.com/"));
34
35   cookies()
36       This method gets and sets the "OpenFrame::Cookies" object associated
37       with this request.
38
39         my $cookietin = $r->cookies();
40         $r->cookies($cookietin);
41
42   arguments()
43       This method gets and sets the argument hash reference associated with
44       this request.
45
46         my $args = $r->arguments();
47         $r->arguments({colour => "blue"});
48

AUTHOR

50       James Duncan <jduncan@fotango.com>
51
52
53
54perl v5.34.0                      2021-07-22             OpenFrame::Request(3)
Impressum