The `setBody()` method in the `Response` class of PHP Guzzle HTTP Message allows setting the body content of the HTTP response. This method is used to assign the response body content, typically received from an API or a web server, to the response object. The body content can be in various formats such as text, JSON, XML, or binary data. By setting the body, developers can easily manipulate and access the content of the HTTP response for further processing or displaying to the end user.
PHP Guzzle\Http\Message Response::setBody - 20 examples found. These are the top rated real world PHP examples of Guzzle\Http\Message\Response::setBody extracted from open source projects. You can rate examples to help us improve the quality of examples.