jvilk / BrowserFS

BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends.
Other
3.06k stars 216 forks source link

Support `fetch` options #289

Open halmos opened 4 years ago

halmos commented 4 years 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 HTTPrequest 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 HTTPRequest options that would be passed down to the fetch request.

bryanchen-d commented 2 years ago

+1 for this. Is there any plan/update on this?

james-pre commented 8 months ago

Please use https://github.com/browser-fs/core/issues/18