Package kong.unirest.core
Class BasicResponse<T>
java.lang.Object
kong.unirest.core.BaseResponse<T>
kong.unirest.core.BasicResponse<T>
- All Implemented Interfaces:
HttpResponse<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicResponse
(BaseResponse response, T body) BasicResponse
(RawResponse httpResponse) BasicResponse
(RawResponse httpResponse, String ogBody, RuntimeException ex) BasicResponse
(RawResponse httpResponse, T body) -
Method Summary
Methods inherited from class kong.unirest.core.BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
body
-
-
Constructor Details
-
BasicResponse
BasicResponse(BaseResponse response, T body) -
BasicResponse
-
BasicResponse
-
BasicResponse
-
-
Method Details
-
getBody
- Specified by:
getBody
in interfaceHttpResponse<T>
- Specified by:
getBody
in classBaseResponse<T>
- Returns:
- the body
-
getRawBody
- Specified by:
getRawBody
in classBaseResponse<T>
-