3 ms·
> I didn't know that HTTP2 supports streaming data It's not specific to HTTP2, and is in fact possible since the server doesn't send a Content-Length so the cl
by rakoo 12y ago
> I didn't know that HTTP2 supports streaming data
It's not specific to HTTP2, and is in fact possible since the server doesn't send a Content-Length so the client doesn't know when the server is done. Think of it not as streaming, but as a really slow and consistent huge response. HTTP2 just makes it smoother (remember: HTTP2 doesn't change semantics, it only changes how things are represented on the wire)
Now, the way the demo server uses that is a bit rough; there is a specification for that in the form of Server-Sent events (https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events https://developer.mozilla.org/en-US/docs/Server-sent_events/...).