T
- the type parameterpublic final class FluentResponse<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
FluentResponse.ByteArrayResponse<T>
The type Byte array response.
|
class |
FluentResponse.JSONResponse<T>
The type JSON response.
|
Modifier and Type | Method and Description |
---|---|
static <T> FluentResponse<T> |
of(com.squareup.okhttp.Response httpResponse,
int expectedHttpStatus)
Of fluent response.
|
FluentResponse.ByteArrayResponse<T> |
transformToByteArray()
Transform to byte array.
|
FluentResponse.JSONResponse<T> |
transformToJSON()
Transform to jSON.
|
public static <T> FluentResponse<T> of(com.squareup.okhttp.Response httpResponse, int expectedHttpStatus)
T
- the type parameterhttpResponse
- the http responseexpectedHttpStatus
- the expected http statuspublic FluentResponse.JSONResponse<T> transformToJSON()
public FluentResponse.ByteArrayResponse<T> transformToByteArray()