Closed rik43 closed 3 years ago
only change body and save headers. i`m try, and this doesnt work.
$response->setBody(Stream::factory('foo'));
this need create new response and copy all headers ?
//get body $content = (string)$response->getBody() //change response body $body = Utils::streamFor(json_encode($content)); $response = $response->withBody($body);
only change body and save headers. i`m try, and this doesnt work.
this need create new response and copy all headers ?