@@ -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,12 @@ their responses as a ``BatchResult``::
48
52
49
53
$batchResult = $client->sendRequests($requests);
50
54
55
+
56
+ ..versionadded:: 2.0
57
+ ``BatchClient `` is final since version 2.0. You can typehint the
58
+ ``BatchClientInterface `` to allow mocking the client in unit tests.
59
+
60
+
51
61
The ``BatchResult `` itself is an object that contains responses for all requests sent.
52
62
It provides methods that give appropriate information based on a given request::
53
63
@@ -123,7 +133,7 @@ To enable the behavior, wrap the clients with the ``HttpClientPoolItem`` class y
123
133
// Never reactivate the client (default)
124
134
$httpClientPool->addHttpClient(new HttpClientPoolItem($httpClient, null));
125
135
126
- ``HttpClientPool `` is abstract . There are three concrete implementations with specific strategies on how to choose clients:
136
+ ``HttpClientPool `` is an interface . There are three concrete implementations with specific strategies on how to choose clients:
127
137
128
138
LeastUsedClientPool
129
139
*******************
@@ -228,3 +238,7 @@ and also to download an image from a static host::
228
238
it's easier to use the ``RequestConditionalPlugin `` and the ``PluginClient ``,
229
239
but in that case the routing logic is integrated into the linear request flow
230
240
which might make debugging harder.
241
+
242
+ ..versionadded:: 2.0
243
+ ``HttpClientRouter `` is final since version 2.0. You can typehint the
244
+ ``HttpClientRouterInterface `` to allow mocking the client in unit tests.
0 commit comments