Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7e22f5420e
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (17 sloc) 0.521 kb
#!/usr/bin/env perl6
###############################################################################
#
# Test script using the recommended API.
#
###############################################################################
use FastCGI;
my $fcgi = FastCGI.new( :port(9119) );
my $handler = sub (%env)
{
my $name = %env<QUERY_STRING> || 'World';
my $status = '200';
my @headers = 'Content-Type' => 'text/plain';
my @body = "Hello $name\n";;
return [ $status, @headers, @body ];
}
$fcgi.handle: $handler;
Jump to Line
Something went wrong with that request. Please try again.