Skip to content
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

[11.x] Helper methods to dump responses of the Laravel HTTP client #54317

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

morrislaptop
Copy link
Contributor

Similar to #36466 this PR adds methods to the Response object returned by the HTTP Client.

The method signatures follow the methods from the TestResponse class for consistency.

Http::get($url)->dump($key = null);
Http::get($url)->dd($key = null);
Http::get($url)->dumpHeaders();
Http::get($url)->ddHeaders();

Copy link

@PPrinsloo PPrinsloo left a comment

Choose a reason for hiding this comment

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

Nice, literally needed it this morning!

@taylorotwell taylorotwell merged commit 5253cc2 into laravel:11.x Jan 23, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants