You are here

private function Client::buildUri in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::buildUri()
2 calls to Client::buildUri()
Client::requestAsync in vendor/guzzlehttp/guzzle/src/Client.php
Create and send an asynchronous HTTP request.
Client::sendAsync in vendor/guzzlehttp/guzzle/src/Client.php
Asynchronously send an HTTP request.

File

vendor/guzzlehttp/guzzle/src/Client.php, line 139

Class

Client
@method ResponseInterface get($uri, array $options = []) @method ResponseInterface head($uri, array $options = []) @method ResponseInterface put($uri, array $options = []) @method ResponseInterface post($uri, array $options = []) @method…

Namespace

GuzzleHttp

Code

private function buildUri($uri, array $config) {
  if (!isset($config['base_uri'])) {
    return $uri instanceof UriInterface ? $uri : new Psr7\Uri($uri);
  }
  return Psr7\Uri::resolve(Psr7\uri_for($config['base_uri']), $uri);
}