Re: [whatwg/streams] Add URL.createObjectURL(stream) support (#480)

I kind of did this in my [StreamSaver](https://github.com/jimmywarting/StreamSaver.js)

When a stream gets created it signals the service worker that it should intercept a link with a new response, that response gets constructed with a new ReadableStream and you get back a uniq link. Then the only thing left to do is piping the stream to the service worker and use that link from somewhere

I just now realized I could have done this lib a bit more generic and implemented something like `URL.createObjectURL(stream)` and create a link with download attribute instead of using content-disposition. Then you could even use it for other stuff like img/video/script/style tags as well

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/480#issuecomment-244621750

Received on Sunday, 4 September 2016 18:50:39 UTC