wasm-bindgen/crates/web-sys/webidls
str4d 6ba8c6c2ec
Add Blob.stream() method (#2140)
This enables a ReadableStream to be obtained for a file, which can then
be handled with e.g. https://github.com/MattiasBuelens/wasm-streams

    let file: web_sys::File = ...;
    let stream = wasm_streams::readable::ReadableStream::from(
        file.stream()
            .unchecked_into::<wasm_streams::readable::sys::ReadableStream>(),
    );

WebIDL source: https://w3c.github.io/FileAPI/#blob-section
Docs: https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream
2020-05-18 06:59:16 -05:00
..
disabled [WIP] Add support for unstable WebIDL (#1997) 2020-02-26 16:30:11 -06:00
enabled Add Blob.stream() method (#2140) 2020-05-18 06:59:16 -05:00
unavailable_option_primitive impl OptionFromWasmAbi and OptionIntoWasmAbi for ImportEnum, enable RTCRtpTransceiver.webidl, add add rtc_rtp_transceiver_direction test 2019-03-14 12:15:02 -06:00
unstable Add clipboard webidl 2020-04-23 07:10:57 +02:00