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:
parent
23d29eda8d
commit
02b08aaa10
@ -273,6 +273,9 @@ class _ObjectBody(object):
|
||||
def __next__(self):
|
||||
return self.next()
|
||||
|
||||
def close(self):
|
||||
self.resp.close()
|
||||
|
||||
|
||||
class _RetryBody(_ObjectBody):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user