| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Parser.Mime
Synopsis
- 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
- type Content = ByteString
- data MimeContent
- data Disposition = Disposition {
- dispType :: DispType
- dispParams :: [DispParam]
- data DispType
- data DispParam
Documentation
decodelatin1 :: ByteString -> Text #
string2mimetype :: ByteString -> MimeType #
- 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"
Constructors
| Alternative | |
| Byteranges | |
| Digest | |
| Encrypted | |
| FormData | |
| Mixed | |
| Parallel | |
| Related | |
| Signed | |
| Extension Text | |
| OtherMultiPart Text |
type Content = ByteString #
data MimeContent #
Instances
| Eq MimeContent # | |
Defined in Network.Parser.Mime | |
| Show MimeContent # | |
Defined in Network.Parser.Mime Methods showsPrec :: Int -> MimeContent -> ShowS # show :: MimeContent -> String # showList :: [MimeContent] -> ShowS # | |
data Disposition #
Constructors
| Disposition | |
Fields
| |
Instances
| Eq Disposition # | |
Defined in Network.Parser.Mime | |
| Show Disposition # | |
Defined in Network.Parser.Mime Methods showsPrec :: Int -> Disposition -> ShowS # show :: Disposition -> String # showList :: [Disposition] -> ShowS # | |
Constructors
| DispInline | |
| DispAttachment | |
| DispFormData | |
| DispOther Text |