def get_connection(host=host, port=port): return httplib.HTTPConnection(host, port)
def _make_http_request(self, host_port, timeout): connection = httplib.HTTPConnection(host_port, timeout=timeout) connection.request('GET', self._config['url'], headers=self.HEADERS) return connection.getresponse()