Commits

Alexander Shorin committed 4051be7

Fix CONNECT method support

Comments (0)

Files changed (1)

httpdomain/sphinxcontrib/httpdomain.py

     method = 'trace'
 
 
+class HTTPConnect(HTTPResource):
+
+    method = 'connect'
+
+
 class HTTPCopy(HTTPResource):
 
     method = 'copy'
         'patch': ObjType('patch', 'patch', 'obj'),
         'delete': ObjType('delete', 'delete', 'obj'),
         'trace': ObjType('trace', 'trace', 'obj'),
+        'connect': ObjType('connect', 'connect', 'obj'),
         'copy': ObjType('copy', 'copy', 'obj'),
         'any': ObjType('any', 'any', 'obj')
     }
         'patch': HTTPPatch,
         'delete': HTTPDelete,
         'trace': HTTPTrace,
+        'connect': HTTPConnect,
         'copy': HTTPCopy,
         'any': HTTPAny
     }
         'patch': HTTPXRefRole('patch'),
         'delete': HTTPXRefRole('delete'),
         'trace': HTTPXRefRole('trace'),
+        'connect': HTTPXRefRole('connect'),
         'copy': HTTPXRefRole('copy'),
         'any': HTTPXRefRole('any'),
         'statuscode': http_statuscode_role,
         'patch': {},
         'delete': {},
         'trace': {},
+        'connect': {},
         'copy': {},
         'any': {}
     }