Catalyst-ActionRole-MatchRequestMethod
view release on metacpan or search on metacpan
{
"abstract" : "Dispatch actions based on HTTP request methods",
"author" : [
"Florian Ragwitz <rafl@debian.org>"
],
"build_requires" : {
"Catalyst::Controller::ActionRole" : "0",
"Catalyst::Test" : "0",
"FindBin" : "0",
"HTTP::Request::Common" : "0",
"Moose" : "1.03",
"Test::More" : "0.89"
},
"configure_requires" : {
"ExtUtils::MakeMaker" : "6.31"
},
"generated_by" : "Dist::Zilla version 2.101240",
"license" : "perl",
"meta-spec" : {
"url" : "http://module-build.sourceforge.net/META-spec-v1.4.html",
---
abstract: 'Dispatch actions based on HTTP request methods'
author:
- 'Florian Ragwitz <rafl@debian.org>'
build_requires:
Catalyst::Controller::ActionRole: 0
Catalyst::Test: 0
FindBin: 0
HTTP::Request::Common: 0
Moose: 1.03
Test::More: 0.89
configure_requires:
ExtUtils::MakeMaker: 6.31
generated_by: 'Dist::Zilla version 2.101240'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: Catalyst-ActionRole-MatchRequestMethod
Makefile.PL view on Meta::CPAN
'CONFIGURE_REQUIRES' => {
'ExtUtils::MakeMaker' => '6.31'
},
'AUTHOR' => 'Florian Ragwitz <rafl@debian.org>',
'BUILD_REQUIRES' => {
'Test::More' => '0.89',
'FindBin' => '0',
'Catalyst::Controller::ActionRole' => '0',
'Catalyst::Test' => '0',
'Moose' => '1.03',
'HTTP::Request::Common' => '0'
},
'ABSTRACT' => 'Dispatch actions based on HTTP request methods',
'EXE_FILES' => [],
'VERSION' => '0.03',
'PREREQ_PM' => {
'Moose::Role' => '0',
'namespace::autoclean' => '0',
'Catalyst::Runtime' => '5.80',
'Catalyst::Controller::ActionRole' => '0',
'Perl6::Junction' => '0'
use strict;
use warnings;
use Test::More 0.89;
use HTTP::Request::Common qw/GET POST DELETE/;
use FindBin;
use lib "$FindBin::Bin/lib";
use Catalyst::Test 'TestApp';
is(request(GET '/foo')->content, 'get');
is(request(POST '/foo')->content, 'post');
is(request(DELETE '/foo')->content, 'default');
( run in 0.445 second using v1.01-cache-2.11-cpan-de7293f3b23 )