docs: public static AcceptPreference fromRequest(HttpServletRequest request) {
          ArrayList<AcceptPreference> headers = new ArrayList<AcceptPreference>();
          Enumeration<String> strHeaders = request.getHeaders(RFC7231_HEADER);
          while (strHeaders.hasMoreElements()) {
              headers.add(fromString(strHeaders.nextElement()));
          }
          if (headers.isEmpty()) {
              return fromString("*/*");
          } else {
              return fromHeaders(headers);
          }
      }