We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6068fa6 commit cba387cCopy full SHA for cba387c
src/http-client/src/Response.php
@@ -98,6 +98,10 @@ public function object(): array|object|null
98
99
/**
100
* Set a custom decode callback.
101
+ *
102
+ * The callback will be invoked with the following parameters:
103
+ * - string $body: The raw response body.
104
+ * - bool $asObject: When true, the decoder should return an array of objects.
105
*/
106
public function decodeUsing(?Closure $callback): static
107
{
0 commit comments