Emits the next chunk flush_output/1 on DataStream, but in addition
adds extension parameters to the chunk. Extensions is a list of
Key=Value
terms. For example, to close a chunked stream with an
error chunk we something like below. First, we flush the last
pending data, next we fill a new chunk and flush it with
extensions.
flush_output(current_output),
format("Sorry, something went wrong!\n"),
http_chunked_flush(current_output, [error=true])
- Compatibility
- - It turns out that most clients ignore chunked extensions.