Lines Matching refs:connection
52 $connection = $this->getConnection();
54 $client = $this->_getGuzzleClient($connection->isPersistent());
57 'base_uri' => $this->_getBaseUrl($connection),
64 if ($connection->getTimeout()) {
65 $options[RequestOptions::TIMEOUT] = $connection->getTimeout();
68 if (null !== $proxy = $connection->getProxy()) {
72 $req = $this->_createPsr7Request($request, $connection);
85 if ($connection->hasConfig('bigintConversion')) {
86 $response->setJsonBigintConversion($connection->getConfig('bigintConversion'));
110 protected function _createPsr7Request(Request $request, Connection $connection)
115 $connection->hasConfig('headers') && \is_array($connection->getConfig('headers'))
116 ? $connection->getConfig('headers')
140 * @param bool $persistent False if not persistent connection
152 * Builds the base url for the guzzle connection.
154 protected function _getBaseUrl(Connection $connection): string
157 $url = $connection->hasConfig('url') ? $connection->getConfig('url') : '';
164 'host' => $connection->getHost(),
165 'port' => $connection->getPort(),
166 'path' => \ltrim($connection->getPath(), '/'),