-
Notifications
You must be signed in to change notification settings - Fork 98
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
Support auto-enable --stream when meet server sent events #204
Comments
I think httpie/cli#376 (comment) is something we can implement easily in xh:
|
I don't think that's right. Nginx sends me There are apparently other mimetypes for streaming besides It might actually make sense to just always enable streaming. The encoding detection and the binary content detection would suffer but I'm not sure anything else would. I haven't thought about it for very long though. |
Do you know if enabling streaming comes with any noticeable performance degradation? |
Hmm. It seems that writing formatted JSON is much slower when streaming because the output isn't buffered. That's probably fixable by adding buffering but flushing it after each read (to make sure there's no delay). There might be other cases. |
As of HTTPie 3.0, |
#httpie/cli#376
The text was updated successfully, but these errors were encountered: