Lucu-1.0: Embedded HTTP Server

Network.HTTP.Lucu.MultipartForm

Description

Parse "multipart/form-data" based on RFC 2388: http://tools.ietf.org/html/rfc2388

Synopsis

Documentation

data FormData Source

FormData represents a form value and possibly an uploaded file name.

Constructors

FormData 

Fields

fdFileName :: !(Maybe Text)

Nothing for non-file values.

fdMIMEType :: !MIMEType

MIME Type of this value, defaulted to "text/plain".

fdContent :: !ByteString

The form value.

parseMultipartFormDataSource

Arguments

:: Ascii

boundary

-> ByteString

input

-> Either String [(Ascii, FormData)] 

Parse "multipart/form-data" to a list of (name, formData). Note that there are currently the following limitations: