File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,21 @@ ensure local networks are made inaccessible to the HTTP client::
814
814
// but all the other requests, including other internal networks, will be allowed
815
815
$client = new NoPrivateNetworkHttpClient(HttpClient::create(), ['104.26.14.0/23']);
816
816
817
+ Profiling
818
+ ~~~~~~~~~
819
+
820
+ When you are using the :class: `Symfony\\ Component\\ HttpClient\\ TraceableHttpClient `
821
+ responses content will be kept in memory, which can cause different issues.
822
+
823
+ You can disable this behavior by setting the ``extra.trace_content `` to ``false ``
824
+ in your requests’ options::
825
+
826
+ $response = $client->request('GET', 'https://...', [
827
+ 'extra' => ['trace_content' => false],
828
+ ]);
829
+
830
+ This setting won’t have any effect with other clients.
831
+
817
832
Performance
818
833
-----------
819
834
You can’t perform that action at this time.
0 commit comments