MCPcopy Index your code
hub / github.com/RustPython/RustPython / HTTPSHandler

Class HTTPSHandler

Lib/urllib/request.py:1356–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354if hasattr(http.client, 'HTTPSConnection'):
1355
1356 class HTTPSHandler(AbstractHTTPHandler):
1357
1358 def __init__(self, debuglevel=None, context=None, check_hostname=None):
1359 debuglevel = debuglevel if debuglevel is not None else http.client.HTTPSConnection.debuglevel
1360 AbstractHTTPHandler.__init__(self, debuglevel)
1361 if context is None:
1362 http_version = http.client.HTTPSConnection._http_vsn
1363 context = http.client._create_https_context(http_version)
1364 if check_hostname is not None:
1365 context.check_hostname = check_hostname
1366 self._context = context
1367
1368 def https_open(self, req):
1369 return self.do_open(http.client.HTTPSConnection, req,
1370 context=self._context)
1371
1372 https_request = AbstractHTTPHandler.do_request_
1373
1374 __all__.append('HTTPSHandler')
1375

Callers 1

urlopenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected