public function onPreSendHAHeaders(HttpClientPreSendRequestEvent $event)
    {
        if ($event->getRequest()->getQueryMode() == 'WRITE') {
            $event->getRequest()->setHeader($this->queryModeHeaderName, $this->queryModeWriteQueryHeaderValue);
        } elseif ($event->getRequest()->getQueryMode() == 'READ') {
            $event->getRequest()->setHeader($this->queryModeHeaderName, $this->queryModeReadQueryHeaderValue);
        }
    }
public function onPreSendHAHeaders(HttpClientPreSendRequestEvent $event)
    {
        if ($event->getRequest()->getQueryMode() == 'WRITE') {
            $event->getRequest()->setHeader($this->queryModeHeaderName, $this->queryModeWriteQueryHeaderValue);
        } elseif ($event->getRequest()->getQueryMode() == 'READ') {
            $event->getRequest()->setHeader($this->queryModeHeaderName, $this->queryModeReadQueryHeaderValue);
        }
    }
public function onPreSendHAHeaders ( HttpClientPreSendRequestEvent $ event ) { if ( $ event -> getRequest ( ) -> getQueryMode ( ) == 'WRITE' ) { $ event -> getRequest ( ) -> setHeader ( $ this -> queryModeHeaderName , $ this -> queryModeWriteQueryHeaderValue ) ; } elseif ( $ event -> getRequest ( ) -> getQueryMode ( ) == 'READ' ) { $ event -> getRequest ( ) -> setHeader ( $ this -> queryModeHeaderName , $ this -> queryModeReadQueryHeaderValue ) ; } }
Add specific headers to the Request object for helping HA proxies to determine if it is a read or write query.

@param \Neoxygen\NeoClient\Event\HttpClientPreSendRequestEvent $event
Add specific headers to the Request object for helping HA proxies to determine if it is a read or write query .