=head1 NAME Froody::CGI =head1 DESCRIPTION Froody for cgi environment =cut package Froody::Server::CGI; use warnings; use strict; use base qw( Froody::Server ); use CGI; use Scalar::Util qw( blessed ); use Params::Validate qw(:all); use Froody::Dispatch; use Froody::Response; use Froody::Request::CGI; sub request_class { "Froody::Request::CGI" } =head1 METHODS =over 4 =cut sub send_header { my $class = shift; my $response = shift; my $content_type = shift; print CGI::header( -type => $content_type, $response->cookie ? ( -cookie => $response->cookie ) : (), ); } sub send_response { my $class = shift; my $response = shift; print $response->present; } =back =head1 BUGS None known. Please report any bugs you find via the CPAN RT system. L =head1 AUTHOR Copyright Fotango 2005. All rights reserved. Please see the main L 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. =head1 SEE ALSO L, L =cut 1; 1;