💾 Archived View for rawtext.club › ~sloum › geminilist › 007690.gmi captured on 2023-09-08 at 16:27:55. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Luke Emmet luke at marmaladefoo.com
Mon Dec 13 20:26:18 GMT 2021
- - - - - - - - - - - - - - - - - - -
Hello
On 13-Dec-2021 19:10, Sean Conner wrote:
If you receive a MIME type of "audio/*", "video/*" or "text/event-stream"
[1], then you probably would want to stream the data or expect to spend
some time downloading the entire content (or abort entirely if you get
"text/event-stream").
Although strictly speaking according to the workflow described in the spec, you might validly not know the media type until *after* you have received the response, the connection is closed, then you have processed the response :)
I still think the expectation that you may be dealing with indefinite streams either needs to be specified or considered an unspecified anomaly which clients may handle however they like. Currently, clients may quite rightfully abandon server responses that don't terminate within a certain amount of time.
https://html.spec.whatwg.org/multipage/server-sent-events.html
text/event-stream seems to be non-normative and also comes with a set of assumptions about stream resumption and other HTTP headers. So it is likely too complex for Gemini I presume.
regards
- Luke