RetrofitHttpResponseResultX<T> extension

Converts a Retrofit Future<HttpResponse<T>> (returned when you opt-in to the full response object) into a Future<Result<T>>.

on

Methods

toResult() Future<Result<T>>

Available on Future<HttpResponse<T>>, provided by the RetrofitHttpResponseResultX extension

Awaits the future, then unwraps the data field of the HttpResponse.