wai-extra-3.0.3.2: Provides some basic WAI handlers and middleware.

Safe HaskellNone
LanguageHaskell98

Network.Wai.Test

Contents

Synopsis

Session

type Session = ReaderT Application (StateT ClientState IO) Source

runSession :: Session a -> Application -> IO a Source

Requests

data SRequest Source

Constructors

SRequest 

data SResponse Source

Constructors

SResponse 

Fields

simpleStatus :: Status
 
simpleHeaders :: ResponseHeaders
 
simpleBody :: ByteString
 

defaultRequest :: Request

setPath :: Request -> ByteString -> Request Source

Set whole path (request path + query string).

setRawPathInfo :: Request -> ByteString -> Request Source

Assertions