code: public boolean isTextContentType(HttpResponse httpResponse) {
          String contentType = HttpResponseUtils.getFirstHeader(HttpHeaders.CONTENT_TYPE, httpResponse);
          return isTextContentType(contentType);
      }
docs: Check whether the given request's content-type corresponds to "parseable" text.
  
  @param httpResponse
  the response to analyze depending on its content-type
  @return true if this represents text or false if not