HTTPx::Dispatcher - the uri dispatcher
package Your::Dispatcher; use HTTPx::Dispatcher; connect ':controller/:action/:id'; # in your *.psgi file use Plack::Request; use Your::Dispatcher; use UNIVERSAL::require; sub { my $req = Plack::Request->new($_[0]); my $rule = Your::Dispatcher->match($c->req); $rule->{controller}->use or die 'hoge'; my $action = $rule->{action}; $rule->{controller}->$action( $c->req ); };
HTTPx::Dispatcher is URI Dispatcher.
Easy to integrate with Plack::Request, HTTP::Engine, HTTP::Request, Apache::Request, etc.
Tokuhiro Matsuno <tokuhirom@gmail.com>
lestrrat
masaki
Plack::Request, HTTP::Engine, Routes
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Mobirc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Mobirc
CPAN shell
perl -MCPAN -e shell install App::Mobirc
For more information on module installation, please visit the detailed CPAN module installation guide.