Portability | portable |
---|---|
Stability | provisional |
Maintainer | Sigbjorn Finne <sigbjorn.finne@gmail.com> |
Safe Haskell | Safe-Inferred |
Representing MIME types and values.
- data Type = Type {
- mimeType :: MIMEType
- mimeParams :: [(String, String)]
- nullType :: Type
- showType :: Type -> String
- showMIMEParams :: [(String, String)] -> String
- data MIMEType
- showMIMEType :: MIMEType -> String
- data MIMEPair = MIMEPair String SubType
- showMIMEPair :: MIMEPair -> String
- type SubType = String
- type TextType = SubType
- subTypeString :: Type -> String
- majTypeString :: Type -> String
- data Multipart
- = Alternative
- | Byteranges
- | Digest
- | Encrypted
- | FormData
- | Mixed
- | Parallel
- | Related
- | Signed
- | Extension String
- | OtherMulti String
- isXmlBased :: Type -> Bool
- isXmlType :: Type -> Bool
- showMultipart :: Multipart -> String
- type Content = String
- data MIMEValue = MIMEValue {}
- nullMIMEValue :: MIMEValue
- data MIMEContent
- data Disposition = Disposition {
- dispType :: DispType
- dispParams :: [DispParam]
- data DispType
- data DispParam
Documentation
showMIMEParams :: [(String, String)] -> StringSource
showMIMEType :: MIMEType -> StringSource
showMIMEPair :: MIMEPair -> StringSource
subTypeString :: Type -> StringSource
majTypeString :: Type -> StringSource
Alternative | |
Byteranges | |
Digest | |
Encrypted | |
FormData | |
Mixed | |
Parallel | |
Related | |
Signed | |
Extension String | e.g., 'x-foo' (i.e., includes the 'x-' bit) |
OtherMulti String |
isXmlBased :: Type -> BoolSource
data Disposition Source
Disposition | |
|