code: public static boolean isKeepAlive(HttpMessage message) {
          return !message.headers().containsValue(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE, true) &&
                 (message.protocolVersion().isKeepAliveDefault() ||
                  message.headers().containsValue(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE, true));
      }
docs: Returns {@code true} if and only if the connection can remain open and
  thus 'kept alive'.  This methods respects the value of the.
  
  {@code "Connection"} header first and then the return value of
  {@link HttpVersion#isKeepAliveDefault()}.