MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / connect

Method connect

tools/python-3.11.9-amd64/Lib/http/client.py:1465–1476  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1463 self._context.check_hostname = check_hostname
1464
1465 def connect(self):
1466 "Connect to a host on a given (SSL) port."
1467
1468 super().connect()
1469
1470 if self._tunnel_host:
1471 server_hostname = self._tunnel_host
1472 else:
1473 server_hostname = self.host
1474
1475 self.sock = self._context.wrap_socket(self.sock,
1476 server_hostname=server_hostname)
1477
1478 __all__.append("HTTPSConnection")
1479

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45
wrap_socketMethod · 0.45

Tested by

no test coverage detected