Lucu-0.6: HTTP Daemonic Library

Network.HTTP.Lucu.MIMEType

Description

Manipulation of MIME Types.

Synopsis

Documentation

data MIMEType Source

MIMEType "major" "minor" [("name", "value")] represents "major/minor; name=value".

Constructors

MIMEType 

Fields

mtMajor :: !String
 
mtMinor :: !String
 
mtParams :: ![(String, String)]
 

parseMIMEType :: String -> MIMETypeSource

Parse MIMEType from a String. This function throws an exception for parse error.