We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e6490c + b7e4bd7 commit 9d69c39Copy full SHA for 9d69c39
featherbed-core/src/main/scala/featherbed/Client.scala
@@ -70,6 +70,12 @@ class Client(
70
def delete(relativePath: String): DeleteRequest[Coproduct.`"*/*"`.T] =
71
DeleteRequest[Coproduct.`"*/*"`.T](baseUrl.toURI.resolve(relativePath).toURL, List.empty)
72
73
+ /**
74
+ * Close this client releasing allocated resources.
75
+ */
76
+ def close (): Unit =
77
+ httpClient.close()
78
+
79
protected def clientTransform(client: Http.Client): Http.Client = client
80
81
protected val client = clientTransform(Client.forUrl(baseUrl))
0 commit comments