File: fast.pl

package info (click to toggle)
libmojolicious-perl 8.71%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,996 kB
  • sloc: perl: 9,899; makefile: 31; javascript: 1
file content (12 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#
# Fast "Hello World" application for profiling the HTTP stack
#
use Mojo::Base 'Mojolicious';

sub handler {
  my $tx = pop;
  $tx->res->code(200)->body('Hello World!');
  $tx->resume;
}

__PACKAGE__->new->start;