src/mako/http/Request.php
public function getContentType(): string
	{
		if($this->contentType === null)
		{
			$this->contentType = rtrim(strtok((string) $this->headers->get('content-type'), ';'));
		}

		return $this->contentType;
	}
public function getContentType(): string
	{
		if($this->contentType === null)
		{
			$this->contentType = rtrim(strtok((string) $this->headers->get('content-type'), ';'));
		}

		return $this->contentType;
	}
public function getContentType ( ) : string { if ( $ this -> contentType === null ) { $ this -> contentType = rtrim ( strtok ( ( string ) $ this -> headers -> get ( 'content-type' ) , ';' ) ) ; } return $ this -> contentType ; }
Returns the content type of the request body.
An empty string will be returned if the header is missing.

@return string
Returns the content type of the request body . An empty string will be returned if the header is missing .