A simple application 

my $app = sub {
    my($env) = @_;

    return [
        200,
        [ 'Content-type' => 'text/plain' ],
        [ 'Hello World' ]
    ];
};