Safe Haskell | None |
---|---|
Language | Haskell2010 |
- discoverAttachment :: [Header] -> Maybe Text
- findAttachmentName :: Text -> Maybe Text
- isMIME :: Header -> Bool
Documentation
discoverAttachment :: [Header] -> Maybe Text Source #
Check if the given headers represent an attachment
findAttachmentName :: Text -> Maybe Text Source #
When provided with a content-disposition header, checks if it represents an attachment. If it does it returns it's name, otherwise Nothing