private static String responseBodyUnchecked()

in src/main/java/com/spotify/github/http/okhttp/OkHttpHttpResponse.java [86:95]


  private static String responseBodyUnchecked(final Response response) {
    if (response.body() == null) {
      return null;
    }
    try (ResponseBody body = response.body()) {
      return body.string();
    } catch (IOException e) {
      throw new UncheckedIOException("Failed getting response body for: " + response, e);
    }
  }