code: public String parseAsString() throws IOException {
      InputStream content = getContent();
      if (content == null) {
        return "";
      }
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      IOUtils.copy(content, out);
      return out.toString(getContentCharset().name());
    }
docs: Parses the content of the HTTP response from {@link #getContent()} and reads it into a string.
  
  <p>Since this method returns {@code ""} for no content, a simpler check for no content is to
  check if {@link #getContent()} is {@code null}.
  
  <p>All content is read from the input content stream rather than being limited by the
  Content-Length. For the character set, it follows the specification by parsing the "charset"
  parameter of the Content-Type header or by default {@code "ISO-8859-1"} if the parameter is
  missing.
  
  @return parsed string or {@code ""} for no content
  @throws IOException I/O exception