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

Method connect

Lib/http/client.py:1489–1500  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1487 self._context = context
1488
1489 def connect(self):
1490 "Connect to a host on a given (SSL) port."
1491
1492 super().connect()
1493
1494 if self._tunnel_host:
1495 server_hostname = self._tunnel_host
1496 else:
1497 server_hostname = self.host
1498
1499 self.sock = self._context.wrap_socket(self.sock,
1500 server_hostname=server_hostname)
1501
1502 __all__.append("HTTPSConnection")
1503

Callers

nothing calls this directly

Calls 3

superClass · 0.85
wrap_socketMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected