public function getContentType()
    {
        $contentType = $this->headers->first('Content-Type');
        if (($pos = strpos($contentType, ';')) !== false) {
            $contentType = substr($contentType, 0, $pos);
        }

        return $contentType;
    }
public function getContentType()
    {
        $contentType = $this->headers->first('Content-Type');
        if (($pos = strpos($contentType, ';')) !== false) {
            $contentType = substr($contentType, 0, $pos);
        }

        return $contentType;
    }
public function getContentType ( ) { $ contentType = $ this -> headers -> first ( 'Content-Type' ) ; if ( ( $ pos = strpos ( $ contentType , ';' ) ) !== false ) { $ contentType = substr ( $ contentType , 0 , $ pos ) ; } return $ contentType ; }
Returns the Content-Type of the request without it's parameters.

@return string
Returns the Content - Type of the request without it s parameters .