A Simple REST DSL Part 3
Processing http responses.
In part 2, I showed how to describe and execute REST requests with a simple descriptive syntax, but it completely ignored processing the response. This should be as simple as making the request. First let’s simplify access to the components of the response.
You can create a returning method to execute the Request and extract one or more values from the Response. For example:
{% highlight scala %} val personJson = “”"{ “name”: “Jason” }""" RequestBuilder() url “http://api.