X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FMultipartForm.hs;h=a04b4a059f9a28c7e10b3ffc6b7f144b30df0252;hp=edba0d50f1e33e589feeb10b57ec71dbe4ebb3da;hb=9b2a30d;hpb=d70d885133173b9cf89cf6b3e34c8732cb65ab61 diff --git a/Network/HTTP/Lucu/MultipartForm.hs b/Network/HTTP/Lucu/MultipartForm.hs index edba0d5..a04b4a0 100644 --- a/Network/HTTP/Lucu/MultipartForm.hs +++ b/Network/HTTP/Lucu/MultipartForm.hs @@ -47,8 +47,11 @@ import Prelude.Unicode -- 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) } @@ -77,13 +80,13 @@ printContDispo d -- 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 --- , but they aren't +-- , but they won't be -- decoded. parseMultipartFormData ∷ Ascii -- ^boundary → LS.ByteString -- ^input