protected function setContentHeader($contentType, $charset = 'UTF-8')
    {
        $this->response = $this->getPsrResponse()->withHeader('content-type', $contentType . ';' . $charset);
        return $this;
    }
protected function setContentHeader($contentType, $charset = 'UTF-8')
    {
        $this->response = $this->getPsrResponse()->withHeader('content-type', $contentType . ';' . $charset);
        return $this;
    }
protected function setContentHeader ( $ contentType , $ charset = 'UTF-8' ) { $ this -> response = $ this -> getPsrResponse ( ) -> withHeader ( 'content-type' , $ contentType . ';' . $ charset ) ; return $ this ; }
Set content-type by setting the HTTP response header "content-type"

@param $contentType
@param string $charset
@return $this
Set content - type by setting the HTTP response header content - type