File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Installation
48
48
always use its very latest stable major version to get the most accurate
49
49
deprecation report.
50
50
51
- If you plan to :ref: `write-assertions-about-deprecations ` and use the regular
51
+ If you plan to :ref: `write assertions about deprecations < write -assertions-about-deprecations> ` and use the regular
52
52
PHPUnit script (not the modified PHPUnit script provided by Symfony), you have
53
53
to register a new `test listener `_ called ``SymfonyTestsListener ``:
54
54
Original file line number Diff line number Diff line change @@ -798,6 +798,25 @@ ensure local networks are made inaccessible to the HTTP client::
798
798
// but all the other requests, including other internal networks, will be allowed
799
799
$client = new NoPrivateNetworkHttpClient(HttpClient::create(), ['104.26.14.0/23']);
800
800
801
+ Profiling
802
+ ~~~~~~~~~
803
+
804
+ When you are using the :class: `Symfony\\ Component\\ HttpClient\\ TraceableHttpClient `,
805
+ responses content will be kept in memory and may exhaust it.
806
+
807
+ You can disable this behavior by setting the ``extra.trace_content `` option to ``false ``
808
+ in your requests::
809
+
810
+ $response = $client->request('GET', 'https://...', [
811
+ 'extra' => ['trace_content' => false],
812
+ ]);
813
+
814
+ This setting won’t affect other clients.
815
+
816
+ .. versionadded :: 5.2
817
+
818
+ The ``extra.trace_content `` option was introduced in Symfony 5.2.
819
+
801
820
Performance
802
821
-----------
803
822
Original file line number Diff line number Diff line change @@ -124,6 +124,6 @@ Parameter Description
124
124
125
125
.. include :: /reference/constraints/_payload-option.rst.inc
126
126
127
- .. _`ICU format locale IDs` : http ://userguide.icu-project. org/ locale
127
+ .. _`ICU format locale IDs` : https ://unicode- org.github.io/icu/userguide/ locale/
128
128
.. _`ISO 639-1` : https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
129
129
.. _`ISO 3166-1 alpha-2` : https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
You can’t perform that action at this time.
0 commit comments