happstack-server-6.2.5: Web related tools and services.

Happstack.Server.Internal.MessageWrap

Synopsis

Documentation

data BodyPolicy

Constructors

BodyPolicy 

Fields

inputWorker :: Int64 -> Int64 -> Int64 -> InputWorker
 
maxDisk :: Int64

maximum bytes for files uploaded in this Request

maxRAM :: Int64

maximum bytes for all non-file values in the Request body

maxHeader :: Int64

maximum bytes of overhead for headers in multipart/form-data

defaultBodyPolicy

Arguments

:: FilePath

temporary directory for file uploads

-> Int64

maximum bytes for files uploaded in this Request

-> Int64

maximum bytes for all non-file values in the Request body

-> Int64

maximum bytes of overhead for headers in multipart/form-data

-> BodyPolicy 

create a BodyPolicy for use with decodeBody

bodyInput :: MonadIO m => BodyPolicy -> Request -> m ([(String, Input)], Maybe String)

formDecode :: String -> [(String, Input)]

Decodes application/x-www-form-urlencoded inputs. TODO: should any of the [] be error conditions?

multipartDecode

Arguments

:: InputWorker 
-> [(String, String)]

Content-type parameters

-> ByteString

Request body

-> IO ([(String, Input)], Maybe String)

Input variables and values.

Decodes multipart/form-data input.

pathEls :: String -> [String]

Get the path components from a String.

class Read a => ReadString a where

Like Read except Strings and Chars not quoted.

Methods

readString :: String -> a

defaultInputIter :: FileSaver -> FilePath -> Int64 -> Int64 -> Int64 -> Int64 -> Int64 -> Int64 -> Work -> IO InputIter