Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def switch_to_http2 (self):
if self.http2_handler is None:
self.http2_handler = http2_request_handler.RequestHandler (self)
else:
self.http2_handler.handle_request (self)