Get the media type based on the extension of the given path, which can be an URL or file path.
A path.
Optional
A collection of mappings, mapping file extensions to their corresponding media type.
A media type or the empty string.
Get the media type based on the extension of the given path, which can be an URL or file path.