Skip to content

ignore unused resp variable on line 392#154

Merged
umeshp7 merged 1 commit intopostmanlabs:developfrom
idkjs:patch-1
Mar 2, 2020
Merged

ignore unused resp variable on line 392#154
umeshp7 merged 1 commit intopostmanlabs:developfrom
idkjs:patch-1

Conversation

@idkjs
Copy link
Contributor

@idkjs idkjs commented Jan 24, 2020

Snippet doesn't compile with unused rest command. Snippet should now be:

let reqBody =
  let uri = Uri.of_string "https://api.twitter.com/labs/1/users?usernames=TwitterDev&format=detailed" in
  Client.call ~headers:headers `GET uri >>= fun (_resp, body) ->
  body |> Cohttp_lwt.Body.to_string >|= fun body -> body

Snippet doesn't compile with unused `rest` command. Snippet should now be:

```ocaml
let reqBody =
  let uri = Uri.of_string "https://api.twitter.com/labs/1/users?usernames=TwitterDev&format=detailed" in
  Client.call ~headers:headers `GET uri >>= fun (_resp, body) ->
  body |> Cohttp_lwt.Body.to_string >|= fun body -> body
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants