sttp.client3
A simple, synchronous http client. Usage example:
import sttp.client3.{SimpleHttpClient, UriContext, basicRequest} val client = SimpleHttpClient() val request = basicRequest.get(uri"https://httpbin.org/get") val response = client.send(request) println(response.body)
Wraps an SttpBackend, which can be substituted or modified using wrapBackend, adding e.g. logging.
Creating a client allocates resources, hence when no longer needed, the client should be closed using close.
(Since version ) see corresponding Javadoc for more information.
A simple, synchronous http client. Usage example:
Wraps an SttpBackend, which can be substituted or modified using wrapBackend, adding e.g. logging.
Creating a client allocates resources, hence when no longer needed, the client should be closed using close.