-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading from a file seems rather unlike existing prior art like fetch
?
#433
Comments
One thing I'll mention before addressing your feedback...
The
The prior art this API builds on is
|
While I understand that
fetch
generally has fewer ways of getting http responses than something dealing with opening and reading files, this API -- with regards to reading files in particular -- is surprisingly divergent, IMO. I personally found the initial example to be a bit hard to follow, where I was bouncing around inside the code to figure out what was being read, what happens when it's read, and what's initializing the read.I guess I would have expected something like
fetch
and how you read thebody
:Where a file read that aligns more with the existing API might look like:
The text was updated successfully, but these errors were encountered: