example-ocaml icon indicating copy to clipboard operation
example-ocaml copied to clipboard

A simple OCaml program that makes an HTTP Get request and prints the output to the console.

Example OCaml Meetup

Bread and butter OCaml program that makes an HTTP request and prints the response to the console.

To run, do: oasis setup

then: make

Now do ./main.native

and you should see a pretty-printed JSON response in your console.

See Also

If you need help setting up or installing Oasis, Opam, or any other OCaml tooling check out: http://hyegar.com/2015/10/20/so-youre-learning-ocaml/