couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [43/50] git commit: updated refs/heads/1781-reorganize-and-improve-docs to 360107b
Date Wed, 21 Aug 2013 16:38:10 GMT
Handle ANY method as placeholder for any HTTP request method.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d9651397
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d9651397
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d9651397

Branch: refs/heads/1781-reorganize-and-improve-docs
Commit: d9651397d7b0fe4920421930a5a79d83e518231e
Parents: 8e9e156
Author: Alexander Shorin <kxepal@apache.org>
Authored: Wed Aug 21 15:42:25 2013 +0400
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Wed Aug 21 20:29:41 2013 +0400

----------------------------------------------------------------------
 share/doc/ext/httpdomain.py | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/d9651397/share/doc/ext/httpdomain.py
----------------------------------------------------------------------
diff --git a/share/doc/ext/httpdomain.py b/share/doc/ext/httpdomain.py
index a873a8b..a36493f 100644
--- a/share/doc/ext/httpdomain.py
+++ b/share/doc/ext/httpdomain.py
@@ -82,7 +82,8 @@ METHOD_REFS = {
     'delete': RFC2616Ref(9.7),
     'trace': RFC2616Ref(9.8),
     'connect': RFC2616Ref(9.9),
-    'copy': IETFRef(2518, 8.8)
+    'copy': IETFRef(2518, 8.8),
+    'any': ''
 }
 
 #: Mapping from HTTP header name to :class:`DocRef` object which
@@ -333,6 +334,11 @@ class HTTPCopy(HTTPResource):
     method = 'copy'
 
 
+class HTTPAny(HTTPResource):
+
+    method = 'any'
+
+
 def http_statuscode_role(name, rawtext, text, lineno, inliner,
                          options=None, content=None):
     if options is None:
@@ -467,7 +473,8 @@ class HTTPDomain(Domain):
         'patch': ObjType('patch', 'patch', 'obj'),
         'delete': ObjType('delete', 'delete', 'obj'),
         'trace': ObjType('trace', 'trace', 'obj'),
-        'copy': ObjType('copy', 'copy', 'obj')
+        'copy': ObjType('copy', 'copy', 'obj'),
+        'any': ObjType('any', 'any', 'obj')
     }
 
     directives = {
@@ -479,7 +486,8 @@ class HTTPDomain(Domain):
         'patch': HTTPPatch,
         'delete': HTTPDelete,
         'trace': HTTPTrace,
-        'copy': HTTPCopy
+        'copy': HTTPCopy,
+        'any': HTTPAny
     }
 
     roles = {
@@ -492,6 +500,7 @@ class HTTPDomain(Domain):
         'delete': HTTPXRefRole('delete'),
         'trace': HTTPXRefRole('trace'),
         'copy': HTTPXRefRole('copy'),
+        'all': HTTPXRefRole('all'),
         'statuscode': http_statuscode_role,
         'method': http_method_role,
         'header': http_header_role
@@ -506,7 +515,8 @@ class HTTPDomain(Domain):
         'patch': {},
         'delete': {},
         'trace': {},
-        'copy': {}
+        'copy': {},
+        'any': {}
     }
 
     indices = [HTTPIndex]


Mime
View raw message