NAME

Mojolicious::Dispatcher - Dispatcher

SYNOPSIS

use Mojolicious::Dispatcher;

my $routes = Mojolicious::Dispatcher->new;

DESCRIPTION

Mojolicous::Dispatcher is the default Mojolicious dispatcher.

ATTRIBUTES

Mojolicious::Dispatcher inherits all attributes from MojoX::Dispatcher::Routes and implements the following new ones.

method

my $method  = $dispatcher->method;
$dispatcher = $dispatcher->method(qr/GET|POST/);

ua

user_agent

my $ua      = $dispatcher->ua;
my $ua      = $dispatcher->user_agent;
$dispatcher = $dispatcher->ua(qr/GET|POST/);
$dispatcher = $dispatcher->user_agent(qr/GET|POST/);

METHODS

Mojolicious::Dispatcher inherits all methods from MojoX::Dispatcher::Routes and implements the following new ones.

match

my $match = $routes->match($tx);