Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setRequestPath :: forall (m :: Type -> Type) . Monad m => ByteString -> RequestBuilder m ()snap-core Snap.Test Sets the request's path. The path provided must begin with a "/" and must not contain a query string; if you want to provide a query string in your test request, you must use setQueryString or setQueryStringRaw. Note that rqContextPath is never set by any RequestBuilder function. Example:
ghci> :set -XOverloadedStrings ghci> import qualified Data.Map as M ghci> buildRequest $ get "/foo/bar" M.empty >> setRequestPath "/bar/foo" GET /bar/foo HTTP/1.1 host: localhost sn="localhost" c=127.0.0.1:60000 s=127.0.0.1:8080 ctx=/ clen=n/a
setRequestType :: forall (m :: Type -> Type) . MonadIO m => RequestType -> RequestBuilder m ()snap-core Snap.Test Sets the type of the Request being built. Example:
ghci> :set -XOverloadedStrings ghci> import qualified Data.Map as M ghci> buildRequest $ delete "/foo/bar" M.empty >> setRequestType GetRequest GET /foo/bar HTTP/1.1 host: localhost sn="localhost" c=127.0.0.1:60000 s=127.0.0.1:8080 ctx=/ clen=n/a
setSecure :: forall (m :: Type -> Type) . Monad m => Bool -> RequestBuilder m ()snap-core Snap.Test Controls whether the test request being generated appears to be an https request or not. Example:
ghci> :set -XOverloadedStrings ghci> import qualified Data.Map as M ghci> buildRequest $ delete "/foo/bar" M.empty >> setSecure True DELETE /foo/bar HTTP/1.1 host: localhost sn="localhost" c=127.0.0.1:60000 s=127.0.0.1:8080 ctx=/ clen=n/a secure
setMaximumFileSize :: Int64 -> FileUploadPolicy -> FileUploadPolicysnap-core Snap.Util.FileUploads Maximum size of single uploaded file.
setMaximumFormInputSize :: Int64 -> UploadPolicy -> UploadPolicysnap-core Snap.Util.FileUploads Set the maximum size of a form input which will be read into our rqParams map.
setMaximumNumberOfFiles :: Int -> FileUploadPolicy -> FileUploadPolicysnap-core Snap.Util.FileUploads Maximum number of uploaded files.
setMaximumNumberOfFormInputs :: Int -> UploadPolicy -> UploadPolicysnap-core Snap.Util.FileUploads Set the maximum size of a form input which will be read into our rqParams map.
setMaximumSkippedFileSize :: Int64 -> FileUploadPolicy -> FileUploadPolicysnap-core Snap.Util.FileUploads Maximum size of file without name which can be skipped. Ignored if setSkipFilesWithoutNames is False. If skipped file is larger than this setting then FileUploadException is thrown. By default maximum file size is 0. Since: 1.0.3.0
setMinimumUploadRate :: Double -> UploadPolicy -> UploadPolicysnap-core Snap.Util.FileUploads Set the minimum rate (in bytes/second) a client must maintain before we kill the connection.
setMinimumUploadSeconds :: Int -> UploadPolicy -> UploadPolicysnap-core Snap.Util.FileUploads Set the amount of time which must elapse before we begin enforcing the upload rate minimum