NAME

Mojo::Server - Server Base Class

SYNOPSIS

use base 'Mojo::Server';

DESCRIPTION

Mojo::Server is a generic server base class.

ATTRIBUTES

handler

my $handler = $server->handler;
$server     = $server->handler(sub {
    my ($self, $tx) = @_;
    return $tx;
});

METHODS

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

log

$server->log('Test 123');

run

$server->run;