diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2015-02-17 16:41:42 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2015-02-17 16:41:42 +0100 |
commit | b7be814305adfe4636493294e655aadcb2ab9d48 (patch) | |
tree | 953403434fe0831a50a04e0f41bba85bf2e5c83c /Http | |
parent | 9b24edd1ff617040f0903a56690e3f3c053fc3da (diff) | |
download | Router-b7be814305adfe4636493294e655aadcb2ab9d48.zip Router-b7be814305adfe4636493294e655aadcb2ab9d48.tar.gz Router-b7be814305adfe4636493294e655aadcb2ab9d48.tar.bz2 |
Complete HTTP methods (match IANA list).
See the following list:
http://www.iana.org/assignments/http-methods/http-methods.xhtml.
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Dav.php | 42 | ||||
-rw-r--r-- | Http/Http.php | 7 |
2 files changed, 39 insertions, 10 deletions
diff --git a/Http/Dav.php b/Http/Dav.php index bb404fd..978ec27 100644 --- a/Http/Dav.php +++ b/Http/Dav.php @@ -54,19 +54,43 @@ class Dav extends Http { * @var \Hoa\Router\Http\Dav array */ protected static $_methods = [ - 'get', - 'post', - 'put', - 'patch', + 'acl', + 'baseline-control', + 'bind', + 'checkin', + 'checkout', + 'connect', + 'copy', 'delete', + 'get', 'head', + 'label', + 'link', + 'lock', + 'merge', + 'mkactivity', + 'mkcalendar', + 'mkcol', + 'mkredirectref', + 'mkworkspace', + 'move', 'options', + 'orderpatch', + 'patch', + 'post', 'propfind', 'proppatch', - 'mkcol', - 'copy', - 'move', - 'lock', - 'unlock' + 'put', + 'rebind', + 'report', + 'search', + 'trace', + 'unbind', + 'uncheckout', + 'unlink', + 'unlock', + 'update', + 'updateredirectref', + 'version-control' ]; } diff --git a/Http/Http.php b/Http/Http.php index c5020ff..30ae046 100644 --- a/Http/Http.php +++ b/Http/Http.php @@ -95,17 +95,22 @@ class Http extends Router\Generic implements Core\Parameter\Parameterizable { /** * HTTP methods that the router understand. + * Must map http://www.iana.org/assignments/http-methods/http-methods.xhtml. * * @var \Hoa\Router\Http array */ protected static $_methods = [ + 'connect', 'delete', 'get', 'head', + 'link', 'options', 'patch', 'post', - 'put' + 'put', + 'trace', + 'unlink' ]; /** |