Add Fetch's Response's trailer attribute
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: annevk, Unassigned)
Details
Updated•8 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•2 years ago
|
Comment 1•2 years ago
|
||
I think this could be closed as the feature was removed from the fetch spec [1] and from the web-platform-tests [2]
[1] https://github.com/whatwg/fetch/pull/979
[2] https://github.com/web-platform-tests/wpt/pull/20720
Comment 2•8 months ago
|
||
Feels like coming knocking and finding everything's been boarded up long ago.
I came across this day a real use case for HTTP Trailers in Javascript and found it was never implemented.
What happens on the server is this long task runs, and returns output while its running (over minutes), but at the very end you find out if the task succeeded or not. The only reasonable way to implement this is to stream the output and generate a trailer for the status code. The javascript on the page needs to consume all this and process it and react to success/failure. A websocket is really unsuitable here as it's far too heavyweight and there's no uplink back to the server while it is running.
Comment 3•7 months ago
|
||
(In reply to Joshua Hudson from comment #2)
Feels like coming knocking and finding everything's been boarded up long ago.
I came across this day a real use case for HTTP Trailers in Javascript and found it was never implemented.
What happens on the server is this long task runs, and returns output while its running (over minutes), but at the very end you find out if the task succeeded or not. The only reasonable way to implement this is to stream the output and generate a trailer for the status code. The javascript on the page needs to consume all this and process it and react to success/failure. A websocket is really unsuitable here as it's far too heavyweight and there's no uplink back to the server while it is running.
You may be interested in following/contributing at https://github.com/whatwg/fetch/issues/981
Description
•