jchildress
12/10/2016, 4:13 PMedvin
12/10/2016, 4:14 PMjchildress
12/10/2016, 4:26 PMRest.useApacheHttpClient()
line it doesn't work...jchildress
12/10/2016, 4:27 PMjchildress
12/10/2016, 4:27 PMedvin
12/10/2016, 4:31 PMjchildress
12/10/2016, 4:31 PMjchildress
12/10/2016, 4:32 PMedvin
12/10/2016, 4:32 PMjchildress
12/10/2016, 4:33 PMedvin
12/10/2016, 4:33 PMJsonBuilder
on steroids, that allows null values etc, so instead of the getJson
function you can do this:edvin
12/10/2016, 4:34 PM<http://api.post|api.post>("/item", JsonBuilder().add("name", "test").build())
jchildress
12/10/2016, 4:34 PMjchildress
12/10/2016, 4:34 PMjchildress
12/10/2016, 4:34 PMedvin
12/10/2016, 4:34 PMjchildress
12/10/2016, 4:34 PMjchildress
12/10/2016, 4:34 PMjchildress
12/10/2016, 4:36 PMjchildress
12/10/2016, 4:37 PMedvin
12/10/2016, 4:38 PMjchildress
12/10/2016, 4:45 PMjchildress
12/10/2016, 4:46 PMedvin
12/10/2016, 4:51 PMjchildress
12/10/2016, 4:52 PMedvin
12/10/2016, 4:53 PMjchildress
12/10/2016, 4:53 PMedvin
12/10/2016, 5:46 PMone()
, list()
, or consume()
to release the connection, even if you don't use the returned data. I will improve this a little tomorrow, but basically you always need to consume the response or you'll have issues.