In Guzzle 3 you can get the resolved URL (without actually opening it) like this:
$client = new Client([
'base_uri' => 'http://foo.com',
]);
$request = $client->get('bar.html');
echo $request->getUrl();
In Guzzle 6 this is not working anymore. Is there another way to get "http://foo.com/bar.html
"?