src/mako/http/Response.php
public function setType(string $contentType, ?string $charset = null): Response
	{
		$this->contentType = $contentType;

		if($charset !== null)
		{
			$this->charset = $charset;
		}

		return $this;
	}
public function setType(string $contentType, ?string $charset = null): Response
	{
		$this->contentType = $contentType;

		if($charset !== null)
		{
			$this->charset = $charset;
		}

		return $this;
	}
public function setType ( string $ contentType , ? string $ charset = null ) : Response { $ this -> contentType = $ contentType ; if ( $ charset !== null ) { $ this -> charset = $ charset ; } return $ this ; }
Sets the response content type.

@param  string              $contentType Content type
@param  string|null         $charset     Charset
@return \mako\http\Response
Sets the response content type .