
Mojolicious::Dispatcher - Dispatcher

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

Mojolicous::Dispatcher is the default Mojolicious dispatcher.

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/);
user_agent my $ua = $dispatcher->user_agent;
$dispatcher = $dispatcher->user_agent(qr/GET|POST/);

Mojolicious::Dispatcher inherits all methods from MojoX::Dispatcher::Routes and implements the following new ones.
matchmy $match = $routes->match($tx);