-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document issue: requests usage example has a bug #16
Comments
…ream out of NestAuthAdd logic to handle connection closed by server
bump. Would like to see the sseclient work with iter_content or httpx |
I'm not sure I understand why this is necessary. Internally, for chunk in self._event_source:
# ... This will in turn get an iterator from the def __iter__(self):
"""Allows you to use a response as an iterator."""
return self.iter_content(128) |
For me, I bumped this because sseclient is throwing an error when i try to plug in my Response object from my async_asgi_testclient. Code like this:
this code throws an error
I am able to get streaming data out of the response using:
which is why I bumped this issue about iter_content, thinking a level down it might work. |
Ah, that's because your async client provides an async response that includes an |
python 3.6
requests 2.18.4
sseclient-py 1.7
When using requests library, should use response.iter_content() as event source
The text was updated successfully, but these errors were encountered: