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.

  1. 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
    

  2. 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
    

  3. 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
    

  4. setMaximumFileSize :: Int64 -> FileUploadPolicy -> FileUploadPolicy

    snap-core Snap.Util.FileUploads

    Maximum size of single uploaded file.

  5. setMaximumFormInputSize :: Int64 -> UploadPolicy -> UploadPolicy

    snap-core Snap.Util.FileUploads

    Set the maximum size of a form input which will be read into our rqParams map.

  6. setMaximumNumberOfFiles :: Int -> FileUploadPolicy -> FileUploadPolicy

    snap-core Snap.Util.FileUploads

    Maximum number of uploaded files.

  7. setMaximumNumberOfFormInputs :: Int -> UploadPolicy -> UploadPolicy

    snap-core Snap.Util.FileUploads

    Set the maximum size of a form input which will be read into our rqParams map.

  8. setMaximumSkippedFileSize :: Int64 -> FileUploadPolicy -> FileUploadPolicy

    snap-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

  9. setMinimumUploadRate :: Double -> UploadPolicy -> UploadPolicy

    snap-core Snap.Util.FileUploads

    Set the minimum rate (in bytes/second) a client must maintain before we kill the connection.

  10. setMinimumUploadSeconds :: Int -> UploadPolicy -> UploadPolicy

    snap-core Snap.Util.FileUploads

    Set the amount of time which must elapse before we begin enforcing the upload rate minimum

Page 304 of many | Previous | Next