You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2013/09/27 20:03:04 UTC
[03/50] [abbrv] git commit: updated
refs/heads/1781-reorganize-and-improve-docs to 2375d00
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/d5d3c8af
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d5d3c8af
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d5d3c8af
Branch: refs/heads/1781-reorganize-and-improve-docs
Commit: d5d3c8af33d54f0d9c2ac62122ed3fa322911b75
Parents: 233cc4f
Author: Alexander Shorin <kx...@apache.org>
Authored: Wed Aug 21 15:42:25 2013 +0400
Committer: Alexander Shorin <kx...@apache.org>
Committed: Fri Sep 27 21:59:45 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/d5d3c8af/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]