Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[HttpClient] Add ScopingHttpClient::forBaseUri() + tweak MockHttpClient #30843
This allows creating scoped HTTP clients in one line:
$client = ScopingHttpClient::forBaseUri($client, 'http://example.com');
If one also adds default options as 3rd argument, these will be applied conditionally when a URL matching the base URI is requested.
This PR also tweaks