Skip to content

Commit

Permalink
docs(fetch-native-lwt): update install instructions and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lessp committed Oct 11, 2019
1 parent 79c44b9 commit 010acd4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/fetch-native-lwt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ Fetch client for native ReasonML.

1. Install

Currently to install, you'll need `esy` and pin `fetch-native-lwt` to point to this github-repo.
Currently to install, you'll need `esy` and pin `fetch-native-lwt` to point to this Github-repo.

```json
"dependencies": {
...
"fetch-native-lwt": "github:lessp/reason-fetch:fetch-native-lwt.json#<commit-hash>"
},
"resolutions": {
"@opam/httpaf-lwt-unix": "anmonteiro/httpaf:httpaf-lwt-unix.opam#76b461bed081c64908fb1fdfa076ab2c936ca622",
"@opam/httpaf-lwt": "anmonteiro/httpaf:httpaf-lwt.opam#76b461bed081c64908fb1fdfa076ab2c936ca622",
"@opam/httpaf": "anmonteiro/httpaf:httpaf.opam#76b461bed081c64908fb1fdfa076ab2c936ca622"
}
```

Expand All @@ -25,7 +29,7 @@ Currently to install, you'll need `esy` and pin `fetch-native-lwt` to point to t

```re
Fetch.(
fetch("https://httpbin.org/get", ())
fetch("https://httpbin.org/get")
|> Lwt.map(
fun
| Ok({Response.body, status, url, _}) => {
Expand Down

0 comments on commit 010acd4

Please sign in to comment.