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

Method connect

Lib/http/client.py:1497–1508  ·  view source on GitHub ↗

Connect to a host on a given (SSL) port.

(self)

Source from the content-addressed store, hash-verified

1495 self._context = context
1496
1497 def connect(self):
1498 "Connect to a host on a given (SSL) port."
1499
1500 super().connect()
1501
1502 if self._tunnel_host:
1503 server_hostname = self._tunnel_host
1504 else:
1505 server_hostname = self.host
1506
1507 self.sock = self._context.wrap_socket(self.sock,
1508 server_hostname=server_hostname)
1509
1510 __all__.append("HTTPSConnection")
1511

Callers

nothing calls this directly

Calls 3

superClass · 0.85
wrap_socketMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected