pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/p5-Catalyst-Action-REST Added www/p5-Catalyst-Acti...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7c2015905af7
branches: trunk
changeset: 564091:7c2015905af7
user: abs <abs%pkgsrc.org@localhost>
date: Thu Aug 27 10:37:24 2009 +0000
description:
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.
diffstat:
www/p5-Catalyst-Action-REST/DESCR | 23 +++++++++++++++++++++++
www/p5-Catalyst-Action-REST/Makefile | 30 ++++++++++++++++++++++++++++++
www/p5-Catalyst-Action-REST/distinfo | 5 +++++
3 files changed, 58 insertions(+), 0 deletions(-)
diffs (70 lines):
diff -r 7655e3b0c6ab -r 7c2015905af7 www/p5-Catalyst-Action-REST/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/p5-Catalyst-Action-REST/DESCR Thu Aug 27 10:37:24 2009 +0000
@@ -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 -r 7655e3b0c6ab -r 7c2015905af7 www/p5-Catalyst-Action-REST/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/p5-Catalyst-Action-REST/Makefile Thu Aug 27 10:37:24 2009 +0000
@@ -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@localhost
+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 -r 7655e3b0c6ab -r 7c2015905af7 www/p5-Catalyst-Action-REST/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/p5-Catalyst-Action-REST/distinfo Thu Aug 27 10:37:24 2009 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index