##// END OF EJS Templates
http2: mark experimental and developer options
Matt Mackall -
r25837:d343806d default
parent child Browse files
Show More
@@ -126,6 +126,7 b' class http2handler(urllib2.HTTPHandler, '
126 self.ui = ui
126 self.ui = ui
127 self.pwmgr = pwmgr
127 self.pwmgr = pwmgr
128 self._connections = {}
128 self._connections = {}
129 # developer config: ui.http2debuglevel
129 loglevel = ui.config('ui', 'http2debuglevel', default=None)
130 loglevel = ui.config('ui', 'http2debuglevel', default=None)
130 if loglevel and not _configuredlogging:
131 if loglevel and not _configuredlogging:
131 _configuredlogging = True
132 _configuredlogging = True
@@ -469,6 +469,7 b' def opener(ui, authinfo=None):'
469 construct an opener suitable for urllib2
469 construct an opener suitable for urllib2
470 authinfo will be added to the password manager
470 authinfo will be added to the password manager
471 '''
471 '''
472 # experimental config: ui.usehttp2
472 if ui.configbool('ui', 'usehttp2', False):
473 if ui.configbool('ui', 'usehttp2', False):
473 handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))]
474 handlers = [httpconnectionmod.http2handler(ui, passwordmgr(ui))]
474 else:
475 else:
General Comments 0
You need to be logged in to leave comments. Login now