/var/www/vhosts/ihelp.ro/httpdocs/vendor/laminas/laminas-diactoros/src/Response
NameSizeModeActions
ArraySerializer.php27940644editdlrm
EmptyResponse.php8850644editdlrm
HtmlResponse.php20620644editdlrm
InjectContentTypeTrait.php7420644editdlrm
JsonResponse.php44850644editdlrm
RedirectResponse.php13770644editdlrm
Serializer.php30860644editdlrm
TextResponse.php20710644editdlrm
XmlResponse.php20870644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/laminas/laminas-diactoros/src/Response/HtmlResponse.php (2062B)
createBody($html), $status, $this->injectContentType('text/html; charset=utf-8', $headers) ); } /** * Create the message body. * * @param string|StreamInterface $html * @throws Exception\InvalidArgumentException If $html is neither a string or stream. */ private function createBody($html): StreamInterface { if ($html instanceof StreamInterface) { return $html; } if (! is_string($html)) { throw new Exception\InvalidArgumentException(sprintf( 'Invalid content (%s) provided to %s', is_object($html) ? $html::class : gettype($html), self::class )); } $body = new Stream('php://temp', 'wb+'); $body->write($html); $body->rewind(); return $body; } }