Robert Menke
07/31/2019, 12:14 AMresponse.close() caused one of our servers to run out of memory today @Dominaezzz. Just fixed it and fortunately had no downtime because ECS is pretty nice 🙂.e5l
07/31/2019, 6:16 AMHttpResponse instead of a data class?cy
07/31/2019, 6:42 AMclient....useResponse { ... } instead.Dominaezzz
07/31/2019, 10:29 AMDominaezzz
07/31/2019, 10:32 AMHttpResponse because the server returns different Json object for success and error case. So if the code is 200, I call return response.receive<User>() else I call throw response.receive<CustomError>().e5l
07/31/2019, 11:29 AMRobert Menke
07/31/2019, 1:29 PM