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