Skip to content
Snippets Groups Projects
Commit 2b94cc9b authored by Bryan Tong Minh's avatar Bryan Tong Minh
Browse files

add close method to HTTPPool

parent 43bc256a
No related branches found
No related tags found
No related merge requests found
......@@ -188,4 +188,7 @@ class HTTPPool(list):
def request(self, method, host, path, headers, data, stream_iter,
raise_on_not_ok, auto_redirect):
return self.find_connection(host).request(method, host, path,
headers, data, stream_iter, raise_on_not_ok, auto_redirect)
\ No newline at end of file
headers, data, stream_iter, raise_on_not_ok, auto_redirect)
def close(self):
for hosts, conn in self:
conn.close()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment