private function setPSR7ResponseFromString(string $string, HTTPRequestResponseContainer $httpContainer) { $body = $this->httpFactory->createStringStream((string) $string); $response = $httpContainer->getResponse()->withBody($body); $this->setPSR7Response($response, $httpContainer); }