| 1 | #!perl | ||
| 2 | # | ||
| 3 | # Compare and contrast to app.psgi | ||
| 4 | # | ||
| 5 | 1 | my $counter = 0; | |
| 6 | 0 | ▶ | sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 7 | 0 | my $r = shift; | |
| 8 | 0 | my $n = $counter++; | |
| 9 | # loading the env is optional under Feersum. For a "fair" speed | ||
| 10 | # comparison to app.psgi, uncomment this line: | ||
| 11 | # my $env = $r->env(); | ||
| 12 | 0 | my $body = "Hello customer number 0x" . sprintf('%08x',$n) . "\n"; | |
| 13 | 0 | $r->send_response(200, [ | |
| 14 | 'Content-Type' => 'text/plain', | ||
| 15 | 'Connection' => 'close', | ||
| 16 | ], \$body); | ||
| 17 | 1 | }; | |