Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
clearMaxRequestParmsSize :: ParseRequestBodyOptions -> ParseRequestBodyOptionswai-extra Network.Wai.Parse Do not limit the maximum size of the sum of all parameters.
defaultParseRequestBodyOptions :: ParseRequestBodyOptionswai-extra Network.Wai.Parse A reasonable default set of parsing options. Maximum key/filename length: 32 bytes; maximum files: 10; filesize unlimited; maximum size for parameters: 64kbytes; maximum number of header lines: 32 bytes (applies only to headers of a mime/multipart message); maximum header line length: Apache's default for that is 8190 bytes (http:/httpd.apache.orgdocs2.2mod/core.html#limitrequestline) so we're using that here as well.
getRequestBodyType :: Request -> Maybe RequestBodyTypewai-extra Network.Wai.Parse Get the mimetype of the body of an http request.
noLimitParseRequestBodyOptions :: ParseRequestBodyOptionswai-extra Network.Wai.Parse Do not impose any memory limits.
parseRequestBody :: BackEnd y -> Request -> IO ([Param], [File y])wai-extra Network.Wai.Parse Parse the body of an HTTP request. See parseRequestBodyEx for details. Note: This function does not limit the memory it allocates. When dealing with untrusted data (as is usually the case when receiving input from the internet), it is recommended to use the parseRequestBodyEx function instead. since 3.1.15 : throws RequestParseException if something goes wrong
parseRequestBodyEx :: ParseRequestBodyOptions -> BackEnd y -> Request -> IO ([Param], [File y])wai-extra Network.Wai.Parse Parse the body of an HTTP request, limit resource usage. The HTTP body can contain both parameters and files. This function will return a list of key,value pairs for all parameters, and a list of key,a pairs for filenames. The a depends on the used backend that is responsible for storing the received files. since 3.1.15 : throws RequestParseException if something goes wrong
setMaxRequestFileSize :: Int64 -> ParseRequestBodyOptions -> ParseRequestBodyOptionswai-extra Network.Wai.Parse Set the maximum filesize per file (in bytes).
setMaxRequestFilesSize :: Int64 -> ParseRequestBodyOptions -> ParseRequestBodyOptionswai-extra Network.Wai.Parse Set the maximum size of all files per request.
setMaxRequestKeyLength :: Int -> ParseRequestBodyOptions -> ParseRequestBodyOptionswai-extra Network.Wai.Parse Set the maximum length of a filename.
setMaxRequestNumFiles :: Int -> ParseRequestBodyOptions -> ParseRequestBodyOptionswai-extra Network.Wai.Parse Set the maximum number of files per request.