core/Request.php
public static function getContentType($whole = false)
    {
        $content_type = self::getHeader('content-type');
        if ($whole) {
            return $content_type;
        }
        $temp = explode(';', $content_type);
        return $temp[0];
    }
public static function getContentType($whole = false)
    {
        $content_type = self::getHeader('content-type');
        if ($whole) {
            return $content_type;
        }
        $temp = explode(';', $content_type);
        return $temp[0];
    }
获取 内容类型
@param bool $whole
@return array|mixed|null|string