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

Method __init__

Lib/http/client.py:1485–1495  ·  view source on GitHub ↗
(self, host, port=None,
                     *, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
                     source_address=None, context=None, blocksize=8192,
                     max_response_headers=None)

Source from the content-addressed store, hash-verified

1483 default_port = HTTPS_PORT
1484
1485 def __init__(self, host, port=None,
1486 *, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
1487 source_address=None, context=None, blocksize=8192,
1488 max_response_headers=None):
1489 super(HTTPSConnection, self).__init__(host, port, timeout,
1490 source_address,
1491 blocksize=blocksize,
1492 max_response_headers=max_response_headers)
1493 if context is None:
1494 context = _create_https_context(self._http_vsn)
1495 self._context = context
1496
1497 def connect(self):
1498 "Connect to a host on a given (SSL) port."

Callers

nothing calls this directly

Calls 3

superClass · 0.85
_create_https_contextFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected