Mercurial > hg
comparison mercurial/wireprotov2server.py @ 37644:77c9ee77687c
wireproto: rename HTTPV2 so it less like HTTP/2
Per review suggestion on D3230 from Augie.
Differential Revision: https://phab.mercurial-scm.org/D3295
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 11 Apr 2018 18:15:51 -0700 |
parents | 734515aca84d |
children | b2fa1591fb44 |
comparison
equal
deleted
inserted
replaced
37643:1aa4d646d0de | 37644:77c9ee77687c |
---|---|
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 == '*': |