(self, host)
| 1221 | # @return An HTTPConnection object |
| 1222 | |
| 1223 | def make_connection(self, host): |
| 1224 | #return an existing connection if possible. This allows |
| 1225 | #HTTP/1.1 keep-alive. |
| 1226 | if self._connection and host == self._connection[0]: |
| 1227 | return self._connection[1] |
| 1228 | # create a HTTP connection object from a host descriptor |
| 1229 | chost, self._extra_headers, x509 = self.get_host_info(host) |
| 1230 | self._connection = host, http.client.HTTPConnection(chost) |
| 1231 | return self._connection[1] |
| 1232 | |
| 1233 | ## |
| 1234 | # Clear any cached connection object. |
no test coverage detected