Richard Clamp > OpenFrame-3.05 > OpenFrame::Request

Download:
OpenFrame-3.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  3
View/Report Bugs
Module Version: 3.05   Source  

NAME ^

OpenFrame::Request - An abstract request class

SYNOPSIS ^

  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();

DESCRIPTION ^

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

METHODS ^

new()

The new() method creates a new OpenFrame::Request object.

  my $r = OpenFrame::Request->new();

uri()

This method gets and sets the URI.

  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.

  my $cookietin = $r->cookies();
  $r->cookies($cookietin);

arguments()

This method gets and sets the argument hash reference associated with this request.

  my $args = $r->arguments();
  $r->arguments({colour => "blue"});

AUTHOR ^

James Duncan <jduncan@fotango.com>

syntax highlighting: