From 57b50cbd62b3f6b4703d783030bdd1f181bb6782 Mon Sep 17 00:00:00 2001 From: daveads Date: Thu, 20 Jul 2023 14:03:09 +0100 Subject: [PATCH] added to how-to-guide --- docs/examples/basic/http-client.md | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 docs/examples/basic/http-client.md diff --git a/docs/examples/basic/http-client.md b/docs/examples/basic/http-client.md deleted file mode 100644 index fabd6d5226..0000000000 --- a/docs/examples/basic/http-client.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -id: http-client -title: Http Client Example -sidebar_label: Http Client ---- - -```scala mdoc:silent -import zio._ - -import zio.http._ - -object SimpleClient extends ZIOAppDefault { - val url = "http://sports.api.decathlon.com/groups/water-aerobics" - - val program = for { - res <- Client.request(Request.get(url)) - data <- res.body.asString - _ <- Console.printLine(data) - } yield () - - override val run = program.provide(Client.default, Scope.default) - -} - -``` \ No newline at end of file