wnfs-wg / rs-wnfs

Rust implementation of the WebNative FileSystem (WNFS) specification
https://github.com/wnfs-wg
Apache License 2.0
147 stars 24 forks source link

wasm-bindgen interface for working with read streams #162

Open icidasset opened 1 year ago

icidasset commented 1 year ago

A wasm-bindgen interface for a private file's stream_content method. Ideally an equivalent on the public side should also exist.

Use case I had in mind: Ability to use the HTTP range header to get a part of a file.

matheus23 commented 1 year ago

Yes, that would be nice!

Ideally an equivalent on the public side should also exist.

Agreed, for us that's going to be more akin to integrating iroh-unixfs (now beetle-unixfs?). Or in webnative, we could do that today if we integrated with unixfs-exporter nicely.

matheus23 commented 1 year ago

I started on some implementation recently, but ended up refocusing my efforts. Here's some useful resources: