-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Streaming doesn't seem to be working #1060
Comments
Example taken from docs here: https://httpie.io/docs/2.4.0#examples-use-cases. Thank you for your work. |
Actually, nevermind! I think this is expected behaviour. Streaming entails that all the response data is sent over a single HTTP connection, and that is what you see in your screenshots. See the comment below why they appear instantly. |
@sharat87 Thanks for the report! The As you can verify in the terminal output, those three JSON chunks get formatted with The |
Thank you for the replies. I believe the httpbin endpoint is indeed responding correctly. I've tested the Screen.Recording.2021-05-05.at.18.47.26.mov |
@sharat87 in HTTPie, |
I see. Thank you very much for the response. I didn't realize Closing. |
Checklist
Version 2.4.0
What are the steps to reproduce the problem?
Hit any streaming API endpoint, even the one in the documentation. Examples:
http -S pie.dev/stream/3
http -S pie.dev/drip
What is the expected result?
That the response data shows in the output immediately when it was received. Data should stream.
What happens instead?
The full response data is buffered and is printed at the end of the response. Data doesn't stream.
Debug output
Please re-run the command with
--debug
, then copy the entire command & output and paste both below:Provide any additional information, screenshots, or code examples below:
Screen.Recording.2021-05-05.at.08.07.26.mov
Screen.Recording.2021-05-05.at.08.08.50.mov
The text was updated successfully, but these errors were encountered: