fetch
fetch copied to clipboard
Fetch libraries/interface for Reason/OCaml
Experiments have been started in #31 the goal is to create an implementation which uses [promise](https://github.com/antron/promise).
This PR aims to add a BuckleScript-implementation, defaulting to use `reason-promise` which would close #31. May be of interest to @aantron
One issue I see currently is that there's no way to extend the current Fetch-implementation. E.g. it'd be nice for consumers to extend with custom functionality: ```reason module Body: {...
Still not sure if this is the correct way to go since it clutters up things a little bit when using auto-complete features etc, but this would add `snake_case`-alias to...
May be something for further down the road (or not at all), but logging to remember it! both [fetch](https://fetch.spec.whatwg.org/) and e.g. [axios](https://github.com/axios/axios#cancellation) use a similar API. Seeing as `reason-fetch` bases...
There are different idioms in ReasonML and OCaml, `camelCase` vs `snake_case` and `PascalCase` vs `Giraffe_case` meaning that there'd be some friction if someone would like to use this in the...