src/Koldy/Http/Mime.php
public static function getMimeByExtension(string $extension): string
    {
        $extension = strtolower($extension);

        if (!isset(static::$types[$extension])) {
            throw new HttpException("Unknown file extension={$extension}");
        }

        return static::$types[$extension];
    }
public static function getMimeByExtension(string $extension): string
    {
        $extension = strtolower($extension);

        if (!isset(static::$types[$extension])) {
            throw new HttpException("Unknown file extension={$extension}");
        }

        return static::$types[$extension];
    }
public static function getMimeByExtension ( string $ extension ) : string { $ extension = strtolower ( $ extension ) ; if ( ! isset ( static :: $ types [ $ extension ] ) ) { throw new HttpException ( "Unknown file extension={$extension}" ) ; } return static :: $ types [ $ extension ] ; }
Get the MIME type by extension

@param string $extension

@return string
@throws Exception
Get the MIME type by extension