-- name.
data FormData
= FormData {
+ -- | @'Nothing'@ for non-file values.
fdFileName ∷ !(Maybe Text)
+ -- | MIME Type of this value, defaulted to \"text/plain\".
, fdMIMEType ∷ !MIMEType
+ -- | The form value.
, fdContent ∷ !(LS.ByteString)
}
-- limitations:
--
-- * Multiple files embedded as \"multipart/mixed\" within the
--- \"multipart/form-data\" aren't decomposed.
+-- \"multipart/form-data\" won't be decomposed.
--
--- * \"Content-Transfer-Encoding\"s are always ignored.
+-- * \"Content-Transfer-Encoding\" is always ignored.
--
-- * RFC 2388 says that non-ASCII field names are encoded according
-- to the method in RFC 2047
--- <http://www.faqs.org/rfcs/rfc2047.html>, but they aren't
+-- <http://www.faqs.org/rfcs/rfc2047.html>, but they won't be
-- decoded.
parseMultipartFormData ∷ Ascii -- ^boundary
→ LS.ByteString -- ^input