/** * Set the http client adapter to make requests * * @param HttpClientAdapter $clientAdapter * @return $this * @throws RetrofitException */ public function setClientAdapter(HttpClientAdapter $clientAdapter) { $this->clientProvider->setClient($clientAdapter); return $this; }
/** * Sets the http client used with rest client * * Currently only supports guzzle clients * * @param mixed $httpClient * @return $this */ public function setHttpClient($httpClient) { $this->clientProvider->setClient($httpClient); return $this; }