Mercurial > public > mercurial-scm > hg
comparison mercurial/wireprotoserver.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 | 9170df9106a8 |
children | 9d818539abfa |
comparison
equal
deleted
inserted
replaced
37643:1aa4d646d0de | 37644:77c9ee77687c |
---|---|
305 # when a request to this API is received. | 305 # when a request to this API is received. |
306 # apidescriptor | 306 # apidescriptor |
307 # Callable receiving (req, repo) that is called to obtain an API | 307 # Callable receiving (req, repo) that is called to obtain an API |
308 # descriptor for this service. The response must be serializable to CBOR. | 308 # descriptor for this service. The response must be serializable to CBOR. |
309 API_HANDLERS = { | 309 API_HANDLERS = { |
310 wireprotov2server.HTTPV2: { | 310 wireprotov2server.HTTP_WIREPROTO_V2: { |
311 'config': ('experimental', 'web.api.http-v2'), | 311 'config': ('experimental', 'web.api.http-v2'), |
312 'handler': wireprotov2server.handlehttpv2request, | 312 'handler': wireprotov2server.handlehttpv2request, |
313 'apidescriptor': wireprotov2server.httpv2apidescriptor, | 313 'apidescriptor': wireprotov2server.httpv2apidescriptor, |
314 }, | 314 }, |
315 } | 315 } |