@@ -26,6 +26,10 @@ To be able to do that, it also wraps a message factory::
26
26
$bar = $client->get('http://example.com/bar', ['accept-encoding' => 'application/json']);
27
27
$post = $client->post('http://example.com/update', [], 'My post body');
28
28
29
+ ..versionadded:: 2.0
30
+ ``HttpMethodsClient `` is final since version 2.0. You can typehint the
31
+ ``HttpMethodsClientInterface `` to allow mocking the client in unit tests.
32
+
29
33
BatchClient
30
34
-----------
31
35
@@ -48,6 +52,10 @@ their responses as a ``BatchResult``::
48
52
49
53
$batchResult = $client->sendRequests($requests);
50
54
55
+ ..versionadded:: 2.0
56
+ ``BatchClient `` is final since version 2.0. You can typehint the
57
+ ``BatchClientInterface `` to allow mocking the client in unit tests.
58
+
51
59
The ``BatchResult `` itself is an object that contains responses for all requests sent.
52
60
It provides methods that give appropriate information based on a given request::
53
61
@@ -123,7 +131,7 @@ To enable the behavior, wrap the clients with the ``HttpClientPoolItem`` class y
123
131
// Never reactivate the client (default)
124
132
$httpClientPool->addHttpClient(new HttpClientPoolItem($httpClient, null));
125
133
126
- ``HttpClientPool `` is abstract . There are three concrete implementations with specific strategies on how to choose clients:
134
+ ``HttpClientPool `` is an interface . There are three concrete implementations with specific strategies on how to choose clients:
127
135
128
136
LeastUsedClientPool
129
137
*******************
@@ -228,3 +236,7 @@ and also to download an image from a static host::
228
236
it's easier to use the ``RequestConditionalPlugin `` and the ``PluginClient ``,
229
237
but in that case the routing logic is integrated into the linear request flow
230
238
which might make debugging harder.
239
+
240
+ ..versionadded:: 2.0
241
+ ``HttpClientRouter `` is final since version 2.0. You can typehint the
242
+ ``HttpClientRouterInterface `` to allow mocking the client in unit tests.
0 commit comments