php - Guzzle6 streams doesn't give me the exact output -
i have been trying integrate guzzle app , having trouble it. so, response object from
$response = $client->post(.....);
the response of endpoint in json format. however, when try use following:
http/1.1 200 ok cache-control: no-store pragma: no-cache { // json here }
because of can't use:
$array = json_decode($response->getbody()->getcontents());
how, can rid of showing response header in output of body?
Comments
Post a Comment