This follows the same approach as MWHttpRequest, we inject $wgLocalVirtualHosts, and for each request check whether it matches that domain list, rewriting the request as necessary. Unfortunately this requires a decent amount of code duplication because MultiHttpClient is in includes/libs/ and can't depend on the same code in MWHttpRequest. Bug: T288848 Change-Id: Ia16d8f86b1cb20dde9fe487729d67d92af650cfe |
||
|---|---|---|
| .. | ||
| HttpRequestFactoryTest.php | ||
| HttpUnitTest.php | ||
| MwHttpRequestToResponseInterfaceAdapterTest.php | ||