Lines Matching refs:port
77 protected $port;
138 if (isset($hostDetails['port']) !== true) {
139 $hostDetails['port'] = 9200;
156 $connectionParams['client']['curl'][CURLOPT_PORT] = $hostDetails['port'];
182 $port = $hostDetails['port'];
186 $this->port = $port;
217 $host .= ':' . $this->port;
397 $port = $request['client']['curl'][CURLOPT_PORT] ?? $response['transfer_stats']['primary_port'] ?? '';
398 $uri = $this->addPortInUrl($response['effective_url'], (int) $port);
406 'port' => $port,
423 'port' => $port,
441 $port = $request['client']['curl'][CURLOPT_PORT] ?? $response['transfer_stats']['primary_port'] ?? '';
442 $uri = $this->addPortInUrl($response['effective_url'], (int) $port);
450 'port' => $port,
468 'port' => $port,
568 return $this->port;
635 * Add the port value in the URL if not present
637 private function addPortInUrl(string $uri, int $port): string
642 return preg_replace('#([^/])/([^/])#', sprintf("$1:%s/$2", $port), $uri, 1);