code: private void processRequestHeaders(HttpAcceptSession acceptSession, HttpConnectSession connectSession) {
          boolean upgrade = processHopByHopHeaders(acceptSession, connectSession);
  
          // Add Connection: upgrade or Connection: close header
          if (upgrade) {
              connectSession.setWriteHeader(HEADER_CONNECTION, HEADER_UPGRADE);
          } else {
              ResourceAddress address = connectSession.getRemoteAddress();
              // If keep-alive is disabled, add Connection: close header
              if (!address.getOption(HttpResourceAddress.KEEP_ALIVE)) {
                  connectSession.setWriteHeader(HEADER_CONNECTION, "close");
              }
          }
  
          // Add Via: 1.1 kaazing + uuid header
          connectSession.addWriteHeader(HEADER_VIA, viaHeader);
  
          // Add forwarded headers
          setupForwardedHeaders(acceptSession, connectSession);
  
      }
docs: /*
  Write all (except hop-by-hop) request headers from accept session to connect session. If the request is an
  upgrade one, let the Upgrade header go through as this service supports upgrade