Tootsville.Util.rest

Function

Tootsville.Util.rest is a function with lambda list: (method, uri, body, headers)

The main REST client.

method
GET, PUT, or POST
uri
The URI to access under the game host.
body
A JSON body for a PUT or POST
headers
An object which maps to additional headers to be set on the request. X-Infinity-Auth will be set when logged in; Accept and Content-Type will be defaulted to application/json if not set.