Lines Matching refs:uri
90 $uri = $args[0];
94 ? $this->requestAsync(substr($method, 0, -5), $uri, $opts)
95 : $this->request($method, $uri, $opts);
141 * @param string|UriInterface $uri URI object or string.
146 public function requestAsync($method, $uri = '', array $options = []) argument
154 $uri = $this->buildUri($uri, $options);
158 $request = new Psr7\Request($method, $uri, $headers, $body, $version);
173 * @param string|UriInterface $uri URI object or string.
179 public function request($method, $uri = '', array $options = []) argument
182 return $this->requestAsync($method, $uri, $options)->wait();
204 * @param string|null $uri
208 private function buildUri($uri, array $config) argument
211 $uri = Psr7\uri_for($uri === null ? '' : $uri);
214 $uri = Psr7\UriResolver::resolve(Psr7\uri_for($config['base_uri']), $uri);
219 $uri = Utils::idnUriConvert($uri, $idnOptions);
222 return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri;