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