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