From 998b98d1120ad7975a47e3b96fe869ceaf0db53b Mon Sep 17 00:00:00 2001 From: Andrzej Bil Date: Fri, 12 May 2023 13:05:27 +0200 Subject: [PATCH] Update catseffect.md --- docs/backends/catseffect.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/backends/catseffect.md b/docs/backends/catseffect.md index f3ca1560ae..a1b94f775f 100644 --- a/docs/backends/catseffect.md +++ b/docs/backends/catseffect.md @@ -11,6 +11,12 @@ Also note that the [http4s](http4s.md) backend can also be created for a type im ## Using HttpClient +Firstly, add the following dependency to your project: + +```scala +"com.softwaremill.sttp.client4" %% "cats" % "@VERSION@" +``` + Obtain a cats-effect `Resource` which creates the backend, and closes the thread pool after the resource is no longer used: ```scala mdoc:compile-only