Lines Matching defs:uri
197 * @param string $uri
204 public function performRequest(string $method, string $uri, ?array $params = [], $body = null, array $options = [], Transport $transport = null)
223 'uri' => $this->getURI($uri, $params),
298 $request['uri'],
352 private function getURI(string $uri, ?array $params): string
368 $uri .= '?' . http_build_query($params);
372 $uri = $this->path . $uri;
375 return $uri ?? '';
398 $uri = $this->addPortInUrl($response['effective_url'], (int) $port);
405 'uri' => $uri,
415 $curlCommand = $this->buildCurlCommand($request['http_method'], $uri, $request['body']);
422 'uri' => $uri,
442 $uri = $this->addPortInUrl($response['effective_url'], (int) $port);
449 'uri' => $uri,
460 $curlCommand = $this->buildCurlCommand($request['http_method'], $uri, $request['body']);
467 'uri' => $uri,
637 private function addPortInUrl(string $uri, int $port): string
639 if (strpos($uri, ':', 7) !== false) {
640 return $uri;
642 return preg_replace('#([^/])/([^/])#', sprintf("$1:%s/$2", $port), $uri, 1);