use of com.facebook.stetho.inspector.network.ResponseBodyData in project stetho by facebook.
the class Network method readResponseBody.
private GetResponseBodyResponse readResponseBody(String requestId) throws IOException, JsonRpcException {
GetResponseBodyResponse response = new GetResponseBodyResponse();
ResponseBodyData bodyData;
try {
bodyData = mResponseBodyFileManager.readFile(requestId);
} catch (OutOfMemoryError e) {
throw new JsonRpcException(new JsonRpcError(JsonRpcError.ErrorCode.INTERNAL_ERROR, e.toString(), null));
}
response.body = bodyData.data;
response.base64Encoded = bodyData.base64Encoded;
return response;
}
Aggregations