scalaj-http
Client interpreter backed by scalaj-http.
The Endpoints
interpreter fixes the Endpoint[A, B]
type to a type that provide methods to invoke the endpoint synchronously or asynchronously.
Given the following endpoint definition:
val someResource: Endpoint[Int, String] =
endpoint(get(path / "some-resource" / segment[Int]()), ok(textResponse))
It can be asynchronously invoked as follows:
val eventuallyString: Future[String] = someResource.callAsync(42)
1.2.0