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

AUTHOR

54       James Duncan <jduncan@fotango.com>
55
56
57
58perl v5.8.8                       2004-08-05             OpenFrame::Request(3)
Impressum