Froody::Server - baseclass for Froody::Server
A Froody server. use as:
#!/usr/bin/perl use warnings; use strict; use Froody::Server; Froody::Server->dispatch();
..in a CGI script that is a Froody endpoint.
This server accepts a CGI request as the Froody request, and will dispatch the method, and return the XML of the response as the result of the HTTP request. If the dispatcher throws an error, we catch it and wrap it in a Froody::Response object that represents the error.
Detects the environment that the Froody server is running under, assembles a request, and dispatches it. Replies to the request with the XML response.
Returns a dispatcher object set up for this server with the correct request, response and error classes. I find this useful for getting a dispatcher object for testing against when I have a server class with lots of customization in.
Implemented by subclasses. Should send the headers to the client using the content type passed. Should call the $response's cookies method and dtrt with that.
Implmented by subclasses. Sends the body of the connection. $bytes should be a rendered response.
Handler for apache. Passes the request off to
dispatch() and returns
&Apache::OK if it succeeds.
Gets and sets the header for a type of server.
There's serveral methods you might want to override in subclasses of these. In particular these methods define what helper classes this uses:
Please report any bugs you find via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Froody
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.