TBody - the type of the responseTHeader - the type of the response header objectpublic final class ServiceResponseWithHeaders<TBody,THeader> extends ServiceResponse<TBody>
| Constructor and Description |
|---|
ServiceResponseWithHeaders(TBody body,
THeader headers,
retrofit2.Response<okhttp3.ResponseBody> response)
Instantiate a ServiceResponse instance with a response object and a raw REST response.
|
ServiceResponseWithHeaders(THeader headers,
retrofit2.Response<Void> response)
Instantiate a ServiceResponse instance with a response object and a raw REST response.
|
| Modifier and Type | Method and Description |
|---|---|
THeader |
headers()
Gets the response headers.
|
body, headResponse, response, withBodypublic ServiceResponseWithHeaders(TBody body, THeader headers, retrofit2.Response<okhttp3.ResponseBody> response)
body - deserialized response objectheaders - deserialized response header objectresponse - raw REST responsepublic THeader headers()
Copyright © 2019. All rights reserved.