Lucu-1.0: Embedded HTTP Server

Network.HTTP.Lucu.MIMEType

Description

Parsing and printing MIME Media Types (http://tools.ietf.org/html/rfc2046).

Synopsis

Documentation

data MIMEType Source

A media type, subtype, and parameters.

Constructors

MIMEType 

Instances

Eq MIMEType 
Read MIMEType 
Show MIMEType 
Typeable MIMEType 
Lift MIMEType 
ConvertSuccess MIMEType Ascii 
ConvertSuccess MIMEType AsciiBuilder 
ConvertAttempt Ascii MIMEType

Parse MIMEType from an Ascii. For MIME type literals, consider using mimeType quasi-quoter.

ConvertAttempt MIMEType Ascii 
ConvertAttempt MIMEType AsciiBuilder 
Default (Parser [MIMEType]) 
Default (Parser MIMEType) 

mimeType :: QuasiQuoterSource

QuasiQuoter for MIMEType literals.

   textPlain :: MIMEType
   textPlain = [mimeType| text/plain; charset="UTF-8" |]