MCPcopy Index your code
hub / github.com/python/cpython / make_connection

Method make_connection

Lib/xmlrpc/client.py:1223–1231  ·  view source on GitHub ↗
(self, host)

Source from the content-addressed store, hash-verified

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.

Callers 1

send_requestMethod · 0.95

Calls 1

get_host_infoMethod · 0.95

Tested by

no test coverage detected