zen-fs / core

A filesystem, anywhere
https://zen-fs.github.io/core/
MIT License
103 stars 14 forks source link

`Fetch`: Support `fetch` options #51

Open james-pre opened 11 months ago

james-pre commented 11 months ago

It would be very useful to have the ability to set the options used by the fetch call in the fetchFileAsync function. In particular, this would allow the Fetch backend to access resources that require the authentication header to be set, such as with AWS S3.

I can investigate a PR for this, but do you have thoughts on the best approach to the API. I'm not certain where these options should be exposed in the Configure object. My initial idea would be to add a property to the Fetch options that would be passed down to the fetch request.

~ @halmos

https://github.com/jvilk/BrowserFS/issues/289

james-pre commented 5 months ago

Transferring to fetch