Safe Haskell | None |
---|
Network.Parser.Mime
- decodelatin1 :: ByteString -> Text
- string2mimetype :: ByteString -> MimeType
- parseMimeHeaders :: Parser MimeValue
- data MimeValue = MimeValue {
- mvType :: Type
- mvDisp :: Maybe Disposition
- mvContent :: MimeContent
- mvHeaders :: Map HeaderType Text
- mvIncType :: Bool
- nullMimeValue :: MimeValue
- data Type = Type {}
- nullType :: Type
- type SubType = Text
- type TextType = Text
- data MimeType
- data Multipart
- = Alternative
- | Byteranges
- | Digest
- | Encrypted
- | FormData
- | Mixed
- | Parallel
- | Related
- | Signed
- | Extension Text
- | OtherMultiPart Text
- type Content = ByteString
- data MimeContent
- data Disposition = Disposition {
- dispType :: DispType
- dispParams :: [DispParam]
- data DispType
- data DispParam
Documentation
decodelatin1 :: ByteString -> TextSource
string2mimetype :: ByteString -> MimeTypeSource
- Utilities
- Data Types
recursive at MimeContent, holding mime values
Constructors
MimeValue | |
Fields
|
content-type default as defined in rfc 2045 Content-type: text/plain; charset=us-ascii
type Content = ByteStringSource
data MimeContent Source
Instances
data Disposition Source
Constructors
Disposition | |
Fields
|
Instances
Constructors
DispInline | |
DispAttachment | |
DispFormData | |
DispOther Text |