mirror of
https://github.com/httpie/cli.git
synced 2024-11-25 01:03:27 +01:00
Document auto-stream
This commit is contained in:
parent
859e442083
commit
217cf8ddae
@ -1954,6 +1954,8 @@ You can use the `--stream, -S` flag to make two things happen:
|
|||||||
1. The output is flushed in much smaller chunks without any buffering, which makes HTTPie behave kind of like `tail -f` for URLs.
|
1. The output is flushed in much smaller chunks without any buffering, which makes HTTPie behave kind of like `tail -f` for URLs.
|
||||||
2. Streaming becomes enabled even when the output is prettified: It will be applied to each line of the response and flushed immediately. This makes it possible to have a nice output for long-lived requests, such as one to the [Twitter streaming API](https://developer.twitter.com/en/docs/tutorials/consuming-streaming-data).
|
2. Streaming becomes enabled even when the output is prettified: It will be applied to each line of the response and flushed immediately. This makes it possible to have a nice output for long-lived requests, such as one to the [Twitter streaming API](https://developer.twitter.com/en/docs/tutorials/consuming-streaming-data).
|
||||||
|
|
||||||
|
The `--stream` option is automatically enabled when the response headers include `Content-Type: text/event-stream`.
|
||||||
|
|
||||||
### Example use cases
|
### Example use cases
|
||||||
|
|
||||||
Prettified streamed response:
|
Prettified streamed response:
|
||||||
|
Loading…
Reference in New Issue
Block a user