src/Client/Traits/ClientTrait.php
public function send(Request $request)
    {
        $this->logger()->debug('Sending request. {request}', [
            'request'  => $request,
        ]);

        $response = $this->sendOrRetry($request, $request->getRetries());

        $this->logger()->debug('Response received. {response}', [
            'request'  => $request,
            'response' => $response,
        ]);

        return $response;
    }
public function send(Request $request)
    {
        $this->logger()->debug('Sending request. {request}', [
            'request'  => $request,
        ]);

        $response = $this->sendOrRetry($request, $request->getRetries());

        $this->logger()->debug('Response received. {response}', [
            'request'  => $request,
            'response' => $response,
        ]);

        return $response;
    }
public function send ( Request $ request ) { $ this -> logger ( ) -> debug ( 'Sending request. {request}' , [ 'request' => $ request , ] ) ; $ response = $ this -> sendOrRetry ( $ request , $ request -> getRetries ( ) ) ; $ this -> logger ( ) -> debug ( 'Response received. {response}' , [ 'request' => $ request , 'response' => $ response , ] ) ; return $ response ; }
Executes a request returning back the response

@param Request $request

@return Response

@throws RequestExecutionException
@throws RuntimeException
Executes a request returning back the response