MCPcopy Index your code
hub / github.com/python/cpython / HTTPSHandler

Class HTTPSHandler

Lib/urllib/request.py:1358–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

urlopenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…