To pin the development version: opam pin add fetch https://github.com/anuragsoni/fetch.git
let uri = Uri.of_string "https://httpbin.org/get" in
match%lwt (get uri |> run) with
| Ok r -> (* do something with response *)
| Error e -> (* do something with error *)
Using esy
- Install esy
- Clone the repository
- esy install
- esy build
Using opam
- Clone the repository
- Create local switch
opam switch create ./
dune build