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:
sourceval someResource: Endpoint[Int, String] =
endpoint(get(path / "some-resource" / segment[Int]()), ok(textResponse))
It can be asynchronously invoked as follows:
sourceval eventuallyString: Future[String] = someResource.callAsync(42)
4.0.1