| 1 | =head1 NAME | ||||||||||
| 2 | |||||||||||
| 3 | Froody::CGI | ||||||||||
| 4 | |||||||||||
| 5 | =head1 DESCRIPTION | ||||||||||
| 6 | |||||||||||
| 7 | Froody for cgi environment | ||||||||||
| 8 | |||||||||||
| 9 | =cut | ||||||||||
| 10 | |||||||||||
| 11 | package Froody::Server::CGI; | ||||||||||
| 12 | 9 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 9 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 9 | ▶ | use base qw( Froody::Server ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 9 | ▶ | use CGI; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 9 | ▶ | use Scalar::Util qw( blessed ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 9 | ▶ | use Params::Validate qw(:all); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | |||||||||||
| 19 | 9 | ▶ | use Froody::Dispatch; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 9 | ▶ | use Froody::Response; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | |||||||||||
| 22 | 9 | ▶ | use Froody::Request::CGI; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 0 | ▶ | sub request_class { "Froody::Request::CGI" } | ||||||||
|
Subroutine
request_class: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | |||||||||||
| 25 | =head1 METHODS | ||||||||||
| 26 | |||||||||||
| 27 | =over 4 | ||||||||||
| 28 | |||||||||||
| 29 | =cut | ||||||||||
| 30 | |||||||||||
| 31 | sub send_header | ||||||||||
| 32 | 0 | ▶ | { | ||||||||
|
Subroutine
send_header: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 33 | 0 | my $class = shift; | |||||||||
| 34 | 0 | my $response = shift; | |||||||||
| 35 | 0 | my $content_type = shift; | |||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | print CGI::header( | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | -type => $content_type, | ||||||||||
| 39 | $response->cookie ? ( -cookie => $response->cookie ) : (), | ||||||||||
| 40 | ); | ||||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | sub send_body | ||||||||||
| 44 | 0 | ▶ | { | ||||||||
|
Subroutine
send_body: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 45 | 0 | my $class = shift; | |||||||||
| 46 | 0 | my $bytes = shift; | |||||||||
| 47 | |||||||||||
| 48 | 0 | print $bytes; | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | =back | ||||||||||
| 52 | |||||||||||
| 53 | =head1 BUGS | ||||||||||
| 54 | |||||||||||
| 55 | None known. | ||||||||||
| 56 | |||||||||||
| 57 | Please report any bugs you find via the CPAN RT system. | ||||||||||
| 58 | L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Froody> | ||||||||||
| 59 | |||||||||||
| 60 | =head1 AUTHOR | ||||||||||
| 61 | |||||||||||
| 62 | Copyright Fotango 2005. All rights reserved. | ||||||||||
| 63 | |||||||||||
| 64 | Please see the main L<Froody> documentation for details of who has worked | ||||||||||
| 65 | on this project. | ||||||||||
| 66 | |||||||||||
| 67 | This module is free software; you can redistribute it and/or modify it under | ||||||||||
| 68 | the same terms as Perl itself. | ||||||||||
| 69 | |||||||||||
| 70 | =head1 SEE ALSO | ||||||||||
| 71 | |||||||||||
| 72 | L<Froody>, L<Froody::Server> | ||||||||||
| 73 | |||||||||||
| 74 | =cut | ||||||||||
| 75 | |||||||||||
| 76 | 9 | 1; | |||||||||
| 77 | |||||||||||
| 78 | 9 | 1; | |||||||||
| 79 | |||||||||||