code: @Override
      public STATE onHeadersReceived(HttpResponseHeaders headers) throws Exception {
          if (handshakeOccurred.get()) {
              return super.onHeadersReceived(headers);
          }
          return STATE.CONTINUE;
      }
docs: {@inheritDoc}