A fetch interface/functor for ReasonML/OCaml.
A fetch interface and implementation based on the Fetch-specification from Whatwg. That said, it makes conscious trade-offs and decisions to fit the Reason/OCaml-ecosystem. It also takes inspiration and attempts to follow community-idioms and best practices with regards to HTTP-clients.
The goal is to be pluggable with any HTTP or Promise-implementation provided it conforms to the common interface.
See fetch-native-lwt
for an example-implementation.
The implementation is largely inspired from @aantron's efforts in "Promisifying" luv.