public function setContentType(string $contentType): void
    {
        $this->contentType = $contentType;
        // TODO: This can be removed after the full changes are done for next major.
        $this->headers->set('Content-Type', $contentType, true);
    }
public function setContentType(string $contentType): void
    {
        $this->contentType = $contentType;
        // TODO: This can be removed after the full changes are done for next major.
        $this->headers->set('Content-Type', $contentType, true);
    }
public function setContentType ( string $ contentType ) : void { $ this -> contentType = $ contentType ; // TODO: This can be removed after the full changes are done for next major. $ this -> headers -> set ( 'Content-Type' , $ contentType , true ) ; }
Set content mime type for this response.

@param string $contentType
@return void
@api
Set content mime type for this response .