salvia-protocol-1.0.1: Salvia webserver protocol suite supporting URI, HTTP, Cookie and MIME.

Network.Protocol.Mime

Description

Handling mime types. This module contains a mapping from file extensions to mime-types taken from the Apache webserver project.

Synopsis

Documentation

mime :: String -> Maybe MimeSource

Get the mimetype for the specified extension.

defaultMime :: MimeSource

The default mimetype is text/plain.

extensionToMime :: Map String MimeSource

The mapping from extension to mimetype.