Skip to content

Commit 48a1e26

Browse files
committed
stash httpx response inside StreamResponse
1 parent 12daca8 commit 48a1e26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

getstream/stream_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class StreamResponse(Generic[T]):
1212
def __init__(self, response: httpx.Response, data: T):
13+
self.__response = response
1314
self.__headers = response.headers
1415
self.__status_code = response.status_code
1516
self.__rate_limit = extract_rate_limit(response)

0 commit comments

Comments
 (0)