T - the result type of the conversionpublic interface ResponseConverter<T>
A response converter allows to convert a Response to another object.
To be passed to OkHttpFuture to handle the HTTP response.
| Modifier and Type | Method and Description |
|---|---|
T |
onResponse(okhttp3.Call call,
okhttp3.Response response)
Called when the HTTP request finishes successfully and there is a response to process.
|
@CheckForNull T onResponse(okhttp3.Call call, okhttp3.Response response) throws IOException
call - the Call object that originated the HTTP request.response - HTTP responseIOExceptionCopyright © 2016–2021. All rights reserved.