An implementation of FastCGI using NativeCall
C Perl6 Other
Switch branches/tags
Nothing to show
Latest commit 915ccdd Jan 23, 2017 @jonathanstowe Add required "perl"

README.md

FastCGI::NativeCall

This is an implementation of FastCGI for Perl 6 using NativeCall

Example

use FastCGI::NativeCall;

my $sock = FastCGI::NativeCall::OpenSocket("/var/www/run/example.sock", 5);
my $fcgi = FastCGI::NativeCall.new($sock);

my $count = 0;

while ($fcgi.Accept() >= 0) {
	$fcgi.Print("Content-Type: text/html\r\n\r\n{++$count}");
}