code: public static boolean hasCloseHeader(List<String> connectionValues) {
          if (connectionValues == null) {
              return false;
          }
          return connectionValues.stream().anyMatch(v -> v.equalsIgnoreCase("close"));
      }
docs: /*
  Returns whether there is Connection: close header
  
  @param list of Connection header values
  
  @return true if Connection: close header is part of the values