equal
deleted
inserted
replaced
25 wireprototypes, |
25 wireprototypes, |
26 ) |
26 ) |
27 |
27 |
28 FRAMINGTYPE = b'application/mercurial-exp-framing-0003' |
28 FRAMINGTYPE = b'application/mercurial-exp-framing-0003' |
29 |
29 |
30 HTTPV2 = wireprototypes.HTTPV2 |
30 HTTP_WIREPROTO_V2 = wireprototypes.HTTP_WIREPROTO_V2 |
31 |
31 |
32 def handlehttpv2request(rctx, req, res, checkperm, urlparts): |
32 def handlehttpv2request(rctx, req, res, checkperm, urlparts): |
33 from .hgweb import common as hgwebcommon |
33 from .hgweb import common as hgwebcommon |
34 |
34 |
35 # URL space looks like: <permissions>/<command>, where <permission> can |
35 # URL space looks like: <permissions>/<command>, where <permission> can |
330 self._ui = ui |
330 self._ui = ui |
331 self._args = args |
331 self._args = args |
332 |
332 |
333 @property |
333 @property |
334 def name(self): |
334 def name(self): |
335 return HTTPV2 |
335 return HTTP_WIREPROTO_V2 |
336 |
336 |
337 def getargs(self, args): |
337 def getargs(self, args): |
338 data = {} |
338 data = {} |
339 for k, typ in args.items(): |
339 for k, typ in args.items(): |
340 if k == '*': |
340 if k == '*': |