File: Testserver.pm

package info (click to toggle)
libwww-curl-simple-perl 0.100191-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 240 kB
  • sloc: perl: 685; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 227 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package TestServer;

use strict;
use base qw(Net::Server::Single);

sub process_request {
    my $self = shift;

    print "HTTP/1.0 200 OK\n";
    print "Content-Length: 2\n";
    print "\n";
    print "OK";
    exit(0);
}
1;