| |||||||
| |||||||
| Description | |||||||
MIME Type guessing by a file extension. This is a poor man's way of guessing MIME Types. It is simple and fast. In general you don't have to use this module directly. | |||||||
| Synopsis | |||||||
| |||||||
| Documentation | |||||||
| type ExtMap = Map String MIMEType | |||||||
| Map from extension to MIME Type. | |||||||
| guessTypeByFileName :: ExtMap -> FilePath -> Maybe MIMEType | |||||||
| Guess the MIME Type of file. | |||||||
| parseExtMapFile :: FilePath -> IO ExtMap | |||||||
| Read an Apache mime.types and parse it. | |||||||
| serializeExtMap :: ExtMap -> String -> String -> String | |||||||
serializeExtMap extMap moduleName variableName generates a Haskell source code which contains the following things:
The module Network.HTTP.Lucu.MIMEType.DefaultExtensionMap is surely generated using this function. | |||||||
| Produced by Haddock version 2.1.0 |