File: CAPCServer.pm

package info (click to toggle)
libcgi-application-plugin-captcha-perl 0.04-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 263; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package CAPCServer;

use strict;
use warnings;

use base 'HTTP::Server::Simple::CGI';
use lib './t';
use TestApp2;

sub handle_request 
{
    my ($self, $cgi) = @_;

    print "HTTP/1.0 200 OK\r\n";
    my $webapp = TestApp2->new();
    return $webapp->run;
}

1;