protected function _call(\Communique\RESTClientRequest $request, $debug = null) {
		foreach ($this->_interceptors as $request_interceptor) {
			$request = $request_interceptor->request($request);
		}
		$response = $this->_http->request($request);
		foreach ($this->_interceptors as $response_interceptor) {
			$response = $response_interceptor->response($response);
		}
		if ($debug) {
			$debug($request, $response);
		}
		return $response;
	}
protected function _call(\Communique\RESTClientRequest $request, $debug = null) {
		foreach ($this->_interceptors as $request_interceptor) {
			$request = $request_interceptor->request($request);
		}
		$response = $this->_http->request($request);
		foreach ($this->_interceptors as $response_interceptor) {
			$response = $response_interceptor->response($response);
		}
		if ($debug) {
			$debug($request, $response);
		}
		return $response;
	}
protected function _call ( \ Communique \ RESTClientRequest $ request , $ debug = null ) { foreach ( $ this -> _interceptors as $ request_interceptor ) { $ request = $ request_interceptor -> request ( $ request ) ; } $ response = $ this -> _http -> request ( $ request ) ; foreach ( $ this -> _interceptors as $ response_interceptor ) { $ response = $ response_interceptor -> response ( $ response ) ; } if ( $ debug ) { $ debug ( $ request , $ response ) ; } return $ response ; }
Makes the HTTP request using the chosen HTTP client.
@param  \Communique\RESTClientRequest $request A RESTClientRequest object encapsulating the request
@param  callable $debug A debugging callback to be run after the request has finished. This function is expected to accept two parameters, \Communique\RESTClientRequest and \Communique\RESTClientResponse
@return \Communique\RESTClientResponse A RESTClientResponse object encapsulating the response
Makes the HTTP request using the chosen HTTP client .