src/bTd/SNP/Client/Client.php
protected function sendRequest(Request $request): Response
    {
        // Set password authentication for request.
        if ($this->password !== null) {
            $request->authenticate($this->password);
        }

        $this->send((string) $request);
        $response = new Response($this->get());
        return $response;

    }
protected function sendRequest(Request $request): Response
    {
        // Set password authentication for request.
        if ($this->password !== null) {
            $request->authenticate($this->password);
        }

        $this->send((string) $request);
        $response = new Response($this->get());
        return $response;

    }
protected function sendRequest ( Request $ request ) : Response { // Set password authentication for request. if ( $ this -> password !== null ) { $ request -> authenticate ( $ this -> password ) ; } $ this -> send ( ( string ) $ request ) ; $ response = new Response ( $ this -> get ( ) ) ; return $ response ; }
Send SNP Request message to server.

@param Request $request

@return Response
@throws \bTd\SNP\Protocol\Message\Response\ErrorResponseException|\Exception
Send SNP Request message to server .