New Response from Stream in Microsoft Edge

前端 未结 1 432
广开言路
广开言路 2021-02-11 15:05

Does someone know of a way to create a new Response from a ReadableStream in Microsoft Edge?

For Chrome, this is quite simple. You can just take a ReadableStream

相关标签:
1条回答
  • 2021-02-11 16:07

    Try this:

    https://www.npmjs.com/package/web-streams-polyfill

    var streams = require("web-streams-polyfill");
    var readable = new streams.ReadableStream;
    
    // Or, in ES6
    
    import { ReadableStream } from "web-streams-polyfill";
    
    0 讨论(0)
提交回复
热议问题