Colton Idle
04/19/2021, 11:20 PMby
e.g. class NewApi(realApi: Api) : Api by realApi
Last thing I suppose is if I wanted to fake 400s or 500s or something... I wouldn't be able to use the same solution as #2 right?
Edit: Or actually I think I could use
public static <T> Response<T> success(T body) {
public static <T> Response<T> success(T body, com.squareup.okhttp.Response rawResponse)
public static <T> Response<T> error(int code, ResponseBody body) {