Add close() to _RetryBody.

Allows clients to give up on reading the rest of the server response,
if they so choose.

Change-Id: Iccc95b1b5e7d066470966ee0c62a3beb260846e5
This commit is contained in:
Timur Alperovich 2018-01-22 18:22:04 -08:00 committed by Timur Alperovich
parent 23d29eda8d
commit 02b08aaa10
1 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ class _ObjectBody(object):
def __next__(self):
return self.next()
def close(self):
self.resp.close()
class _RetryBody(_ObjectBody):
"""