Mojo::HelloWorld - Hello World!


Mojolicious documentation  | view source Contained in the Mojolicious distribution.

Index


NAME

Top

Mojo::HelloWorld - Hello World!

SYNOPSIS

Top

  use Mojo::Transaction::HTTP;
  use Mojo::HelloWorld;

  my $hello = Mojo::HelloWorld->new;
  my $tx = $hello->handler(Mojo::Transaction::HTTP->new);

DESCRIPTION

Top

Mojo::HelloWorld is the default Mojo application, used mostly for testing.

METHODS

Top

Mojo::HelloWorld inherits all methods from Mojo and implements the following new ones.

new

  my $hello = Mojo::HelloWorld->new;

Construct a new Mojo::HelloWorld application.

handler

  $tx = $hello->handler($tx);

Handle request.

SEE ALSO

Top

Mojolicious, Mojolicious::Guides, http://mojolicio.us.


Mojolicious documentation  | view source Contained in the Mojolicious distribution.