Skip to content

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