-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A partial fork of the cgi package exposing the multipart module -- -- A partial fork of the cgi package exposing the multipart module @package multipart @version 0.1 -- | Parsing of the multipart format from RFC2046. Partly based on code -- from WASHMail. module Network.Multipart data MultiPart MultiPart :: [BodyPart] -> MultiPart data BodyPart BodyPart :: Headers -> ByteString -> BodyPart -- | Read a multi-part message from a ByteString. parseMultipartBody :: String -> ByteString -> MultiPart -- | Read a multi-part message from a Handle. Fails on parse errors. hGetMultipartBody :: String -> Handle -> IO MultiPart showMultipartBody :: String -> MultiPart -> ByteString -- | A MIME media type value. The Show instance is derived -- automatically. Use showContentType to obtain the standard -- string representation. See http://www.ietf.org/rfc/rfc2046.txt -- for more information about MIME media types. data ContentType :: * ContentType :: String -> String -> [(String, String)] -> ContentType -- | The top-level media type, the general type of the data. Common -- examples are "text", "image", "audio", "video", "multipart", and -- "application". ctType :: ContentType -> String -- | The media subtype, the specific data format. Examples include "plain", -- "html", "jpeg", "form-data", etc. ctSubtype :: ContentType -> String -- | Media type parameters. On common example is the charset parameter for -- the "text" top-level type, e.g. ("charset","ISO-8859-1"). ctParameters :: ContentType -> [(String, String)] data ContentTransferEncoding ContentTransferEncoding :: String -> ContentTransferEncoding data ContentDisposition ContentDisposition :: String -> [(String, String)] -> ContentDisposition -- | Parse the standard representation of a content-type. If the input -- cannot be parsed, this function calls fail with a (hopefully) -- informative error message. parseContentType :: Monad m => String -> m ContentType getContentType :: Monad m => Headers -> m ContentType getContentTransferEncoding :: Monad m => Headers -> m ContentTransferEncoding getContentDisposition :: Monad m => Headers -> m ContentDisposition instance Show BodyPart instance Eq BodyPart instance Ord BodyPart instance Show MultiPart instance Eq MultiPart instance Ord MultiPart