Froody::Request - a Froody server request


Froody documentation Contained in the Froody distribution.

Index


Code Index:

NAME

Top

Froody::Request - a Froody server request

DESCRIPTION

Top

A request into a Froody server. Has a method attribute, and params for the method. Normally you would use a subclass of this that gets the method and params from some external source, for instance Froody::Request::CGI.

ATTRIBUTES

Top

method

The method of the request, probably taken from the URL of the CGI request or something.

params

A hash of named parameters to pass to the request handler, taken from the CGI params on the request or something.

type

The type of response wanted. By default this returns xml.

BUGS

Top

None known.

Please report any bugs you find via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Froody

AUTHOR

Top

Copyright Fotango 2005. All rights reserved.

Please see the main Froody documentation for details of who has worked on this project.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

Froody, Froody::Dispatch


Froody documentation Contained in the Froody distribution.
package Froody::Request;
use warnings;
use strict;
use base qw( Froody::Base );

__PACKAGE__->mk_accessors(qw( method params));

sub type {
   my $self = shift;
   return $self->{type} || "xml"
     unless @_;
   $self->{type} = shift;
   return $self;
}

1;