diff options
author | abs <abs> | 2009-08-27 10:37:24 +0000 |
---|---|---|
committer | abs <abs> | 2009-08-27 10:37:24 +0000 |
commit | e014301170d8f221f40ab4f41114c5a0da920766 (patch) | |
tree | 3c7aada8156b9c6636425c2b6d2ae649c3ed113d | |
parent | ec8cfe56220a99612157384c971d2e6801e7b671 (diff) | |
download | pkgsrc-e014301170d8f221f40ab4f41114c5a0da920766.tar.gz |
Added www/p5-Catalyst-Action-REST version 0.76
This Action handles doing automatic method dispatching for REST
requests. It takes a normal Catalyst action, and changes the dispatch
to append an underscore and method name.
For example, in the synopsis above, calling GET on "/foo" would
result in the foo_GET method being dispatched.
If a method is requested that is not implemented, this action will
return a status 405 (Method Not Found). It will populate the "Allow"
header with the list of implemented request methods. You can override
this behavior by implementing a custom 405 handler like so:
sub foo_not_implemented {
... handle not implemented methods ...
}
If you do not provide an _OPTIONS subroutine, we will automatically
respond with a 200 OK. The "Allow" header will be populated with
the list of implemented request methods.
It is likely that you really want to look at Catalyst::Controller::REST,
which brings this class together with automatic Serialization of
requests and responses.
-rw-r--r-- | www/p5-Catalyst-Action-REST/DESCR | 23 | ||||
-rw-r--r-- | www/p5-Catalyst-Action-REST/Makefile | 30 | ||||
-rw-r--r-- | www/p5-Catalyst-Action-REST/distinfo | 5 |
3 files changed, 58 insertions, 0 deletions
diff --git a/www/p5-Catalyst-Action-REST/DESCR b/www/p5-Catalyst-Action-REST/DESCR new file mode 100644 index 00000000000..f2125539436 --- /dev/null +++ b/www/p5-Catalyst-Action-REST/DESCR @@ -0,0 +1,23 @@ +This Action handles doing automatic method dispatching for REST +requests. It takes a normal Catalyst action, and changes the dispatch +to append an underscore and method name. + +For example, in the synopsis above, calling GET on "/foo" would +result in the foo_GET method being dispatched. + +If a method is requested that is not implemented, this action will +return a status 405 (Method Not Found). It will populate the "Allow" +header with the list of implemented request methods. You can override +this behavior by implementing a custom 405 handler like so: + + sub foo_not_implemented { + ... handle not implemented methods ... + } + +If you do not provide an _OPTIONS subroutine, we will automatically +respond with a 200 OK. The "Allow" header will be populated with +the list of implemented request methods. + +It is likely that you really want to look at Catalyst::Controller::REST, +which brings this class together with automatic Serialization of +requests and responses. diff --git a/www/p5-Catalyst-Action-REST/Makefile b/www/p5-Catalyst-Action-REST/Makefile new file mode 100644 index 00000000000..25ba681b99b --- /dev/null +++ b/www/p5-Catalyst-Action-REST/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/08/27 10:37:24 abs Exp $ + +DISTNAME= Catalyst-Action-REST-0.76 +PKGNAME= p5-${DISTNAME} +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Catalyst/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Catalyst-Action-REST/ +COMMENT= Automated REST Method Dispatching +LICENSE= ${PERL5_LICENSE} + +DEPENDS+= p5-Catalyst-Runtime>=5.7001:../../www/p5-Catalyst-Runtime +DEPENDS+= p5-Class-Inspector>=1.13:../../devel/p5-Class-Inspector +DEPENDS+= p5-Data-Serializer>=0.36:../../devel/p5-Data-Serializer +DEPENDS+= p5-libwww>=5.831:../../www/p5-libwww +DEPENDS+= p5-MRO-Compat>=0.10:../../devel/p5-MRO-Compat +DEPENDS+= p5-Module-Pluggable>=0:../../devel/p5-Module-Pluggable +DEPENDS+= p5-Params-Validate>=0.76:../../devel/p5-Params-Validate +DEPENDS+= p5-URI-Find>=0:../../www/p5-URI-Find +DEPENDS+= p5-YAML-Syck>=0.67:../../textproc/p5-YAML-Syck + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Catalyst/Action/REST/.packlist +PERL5_MODULE_TYPE= Module::Install + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/p5-Catalyst-Action-REST/distinfo b/www/p5-Catalyst-Action-REST/distinfo new file mode 100644 index 00000000000..14867dfc6ea --- /dev/null +++ b/www/p5-Catalyst-Action-REST/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/08/27 10:37:24 abs Exp $ + +SHA1 (Catalyst-Action-REST-0.76.tar.gz) = e683b2417b847945b925debea70f02b69fbf1c33 +RMD160 (Catalyst-Action-REST-0.76.tar.gz) = 068109cc9bdcf3474455533d4b5f70216bb92fd8 +Size (Catalyst-Action-REST-0.76.tar.gz) = 44488 bytes |