protected function constructHttpClient()
    {
        $hasHttpClient = (null !== $this->httpClient);

        $this->httpClient = new HttpClient($this->getOptions());

        if (!$hasHttpClient) {
            $this->httpClient->registerDefaults();
        }
    }
protected function constructHttpClient()
    {
        $hasHttpClient = (null !== $this->httpClient);

        $this->httpClient = new HttpClient($this->getOptions());

        if (!$hasHttpClient) {
            $this->httpClient->registerDefaults();
        }
    }
protected function constructHttpClient ( ) { $ hasHttpClient = ( null !== $ this -> httpClient ) ; $ this -> httpClient = new HttpClient ( $ this -> getOptions ( ) ) ; if ( ! $ hasHttpClient ) { $ this -> httpClient -> registerDefaults ( ) ; } }
Construct the http client

In case you are implementing your own adapter, the base url will be passed on through the options bag
at every call in the respective get / post methods etc. of the adapter.

@return void
Construct the http client