Connect to a host on a given (SSL) port.
(self)
| 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 |
nothing calls this directly
no test coverage detected