aboutsummaryrefslogtreecommitdiff
path: root/bin/main.ml
diff options
context:
space:
mode:
Diffstat (limited to 'bin/main.ml')
-rw-r--r--bin/main.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/main.ml b/bin/main.ml
new file mode 100644
index 0000000..44d41a2
--- /dev/null
+++ b/bin/main.ml
@@ -0,0 +1,6 @@
+open Cohttp_eio
+
+let () =
+ Eio_main.run @@ fun env ->
+ let res = Client.get env ~host:"www.example.org" "/" in
+ print_string @@ Client.read_fixed res