Webiny\Component\Http\Response::setContentType PHP Метод

setContentType() публичный Метод

Sets the Content-Type header value.
public setContentType ( string $contentType )
$contentType string
    public function setContentType($contentType)
    {
        $this->contentType = $contentType;
        $this->setHeader('Content-Type', $contentType . '; charset=' . $this->getCharset());
        return $this;
    }