Happstack.Server.Internal.MessageWrap
- queryInput :: SURI -> [(String, Input)]
- data BodyPolicy = BodyPolicy {}
- defaultBodyPolicy :: FilePath -> Int64 -> Int64 -> Int64 -> BodyPolicy
- bodyInput :: MonadIO m => BodyPolicy -> Request -> m ([(String, Input)], Maybe String)
- formDecode :: String -> [(String, Input)]
- decodeBody :: BodyPolicy -> Maybe ContentType -> ByteString -> IO ([(String, Input)], Maybe String)
- multipartDecode :: InputWorker -> [(String, String)] -> ByteString -> IO ([(String, Input)], Maybe String)
- pathEls :: String -> [String]
- class Read a => ReadString a  where- readString :: String -> a
 
- defaultInputIter :: FileSaver -> FilePath -> Int64 -> Int64 -> Int64 -> Int64 -> Int64 -> Int64 -> Work -> IO InputIter
Documentation
queryInput :: SURI -> [(String, Input)]Source
data BodyPolicy Source
Arguments
| :: FilePath | temporary directory for file uploads | 
| -> Int64 | maximum bytes for files uploaded in this  | 
| -> Int64 | maximum bytes for all non-file values in the  | 
| -> Int64 | maximum bytes of overhead for headers in  | 
| -> BodyPolicy | 
create a BodyPolicy for use with decodeBody
formDecode :: String -> [(String, Input)]Source
Decodes application/x-www-form-urlencoded inputs. TODO: should any of the [] be error conditions?
decodeBody :: BodyPolicy -> Maybe ContentType -> ByteString -> IO ([(String, Input)], Maybe String)Source
Arguments
| :: InputWorker | |
| -> [(String, String)] | Content-type parameters | 
| -> ByteString | Request body | 
| -> IO ([(String, Input)], Maybe String) | Input variables and values. | 
Decodes multipart/form-data input.
class Read a => ReadString a whereSource
Like Read except Strings and Chars not quoted.
Methods
readString :: String -> aSource
Instances