Class ByteResponse
java.lang.Object
kong.unirest.core.BaseResponse<byte[]>
kong.unirest.core.ByteResponse
- All Implemented Interfaces:
HttpResponse<byte[]>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBody()static byte[]getBytes(InputStream is) protected Stringstatic booleanMethods inherited from class BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
body
private final byte[] body
-
-
Constructor Details
-
ByteResponse
-
-
Method Details
-
getBytes
- Throws:
IOException
-
isGzipped
-
getBody
public byte[] getBody()- Specified by:
getBodyin interfaceHttpResponse<byte[]>- Specified by:
getBodyin classBaseResponse<byte[]>- Returns:
- the body
-
getRawBody
- Specified by:
getRawBodyin classBaseResponse<byte[]>
-