GuzzleHttp getContents() Returns Empty on the Second Call
Originally published at recca0120.github.io
Two Ways to Get the Body
After getting a Response from GuzzleHttp PSR-7, there are two ways to retrieve the content:
// Method 1: Cast to string
(string) $response->getBody();
// Method 2: getContents()
$r...
recca0120.hashnode.dev1 min read