You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm certainly open to making those more flexible. The goal is to reliably cover the standard verbs but that doesn't mean it should block more evolved/experimental extensions. Do you have thoughts about how to implement this?
Magpie::Constants was DIYing an Exporter unneccessarily. This fixes it
to use Sub::Exporter which is already brought in by Moose. This should
close bug #1 reported by tobyink.
Additionally we use some of the more advanced Sub::Exporter features to
allow adding custom HTTP methods beyond the core set defined by the
W3C/IETF.
use Magpie::Constants extra_http_methods => [qw(FOO BAR BAZ)] };
or
use Magpie::Constants HTTP_METHODS => {
extra_http_methods => [qw(FOO BAR BAZ)]
};
Should both now work. This closes bug #4 reported by tobyink.
Tests are left as a lemma for the reader (currently).
Magpie::Dispatcher::RequestMethod limits the list of HTTP methods to those defined by Magpie::Constants.
But others exist... http://annevankesteren.nl/2007/10/http-methods
MGET, MPUT and MDELETE (not on the list above) are also occasionally spoken about in Semantic Web circles.
The text was updated successfully, but these errors were encountered: