Skip to content

[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

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

MatTheCat
Copy link
Contributor

Resolves #14424

@carsonbot
Copy link
Collaborator

Hey!

Oh no, it looks like you have made this PR towards a branch that is not maintained anymore. :/
Could you update the PR base branch to target one of these branches instead? 4.4, 5.4, 6.0, 6.1, 6.2.

Cheers!

Carsonbot

@carsonbot carsonbot added this to the 5.2 milestone Jun 18, 2022
@MatTheCat
Copy link
Contributor Author

MatTheCat commented Jun 18, 2022

Uh should I really rebase it on 5.4? The documentation (and PR placeholder) says

If you are […] documenting a new feature, switch to the first Symfony version that included it.

🤔

@OskarStark OskarStark changed the title [HttpClient] Mention extra.trace_content option [HttpClient] Mention extra.trace_content option Jun 18, 2022
@OskarStark
Copy link
Contributor

Uh should I really rebase it on 5.4?

Yes please, as 5.2 is not maintained anymore

@MatTheCat MatTheCat changed the base branch from 5.2 to 5.4 June 18, 2022 19:36
@MatTheCat
Copy link
Contributor Author

Okay, done 👌

@OskarStark OskarStark modified the milestones: 5.2, 5.4 Jun 18, 2022
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@MatTheCat
Copy link
Contributor Author

@OskarStark thanks for the review 🙏

I changed things a little further; I hope it’s okay.

@OskarStark
Copy link
Contributor

Thank you @MatTheCat.

@OskarStark OskarStark merged commit ca0bc3c into symfony:5.4 Jun 20, 2022
@MatTheCat MatTheCat deleted the fix_14424 branch June 20, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HttpClient] added extra.trace_content option to `TraceableHttpClient…
3 participants