-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[HttpClient] Mention extra.trace_content
option
#16894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey! Oh no, it looks like you have made this PR towards a branch that is not maintained anymore. :/ Cheers! Carsonbot |
Uh should I really rebase it on 5.4? The documentation (and PR placeholder) says
🤔 |
extra.trace_content
option
Yes please, as 5.2 is not maintained anymore |
Okay, done 👌 |
http_client.rst
Outdated
~~~~~~~~~ | ||
|
||
When you are using the :class:`Symfony\\Component\\HttpClient\\TraceableHttpClient` | ||
responses content will be kept in memory, which can cause different issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
responses content will be kept in memory, which can cause different issues. | |
responses, content will be kept in memory, which can cause different issues. |
http_client.rst
Outdated
When you are using the :class:`Symfony\\Component\\HttpClient\\TraceableHttpClient` | ||
responses content will be kept in memory, which can cause different issues. | ||
|
||
You can disable this behavior by setting the ``extra.trace_content`` to ``false`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can disable this behavior by setting the ``extra.trace_content`` to ``false`` | |
You can disable this behavior by setting the ``extra.trace_content`` option to |
http_client.rst
Outdated
responses content will be kept in memory, which can cause different issues. | ||
|
||
You can disable this behavior by setting the ``extra.trace_content`` to ``false`` | ||
in your requests’ options:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in your requests’ options:: | |
``false`` in your requests’ options:: |
http_client.rst
Outdated
'extra' => ['trace_content' => false], | ||
]); | ||
|
||
This setting won’t have any effect with other clients. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setting won’t have any effect with other clients. | |
This setting won’t have any effect with other clients. | |
.. versionadded:: 5.4 | |
The ``extra.trace_content`` option was introduced in Symfony 5.2. |
@OskarStark thanks for the review 🙏 I changed things a little further; I hope it’s okay. |
Thank you @MatTheCat. |
Resolves #14424