From 2eeb90ad01a3be596aab5872b71163f2bfe4b63a Mon Sep 17 00:00:00 2001 From: Stevan Little Date: Wed, 13 Jul 2011 11:19:40 -0400 Subject: support all HTTP methods --- lib/Net/HTTP/Spore/Meta/Method.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Net/HTTP') diff --git a/lib/Net/HTTP/Spore/Meta/Method.pm b/lib/Net/HTTP/Spore/Meta/Method.pm index 21d29e6..5c59dcf 100644 --- a/lib/Net/HTTP/Spore/Meta/Method.pm +++ b/lib/Net/HTTP/Spore/Meta/Method.pm @@ -17,7 +17,7 @@ subtype UriPath => where { $_ =~ m!^/! } => message {"path must start with /"}; -enum Method => qw(HEAD GET POST PUT DELETE); +enum Method => qw(OPTIONS HEAD GET POST PUT DELETE TRACE); subtype 'JSON::XS::Boolean' => as 'JSON::XS::Boolean'; subtype 'JSON::PP::Boolean' => as 'JSON::PP::Boolean'; -- cgit 1.4.1