Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type WaiExpectation = WaiSession ()
- newtype WaiSession a = WaiSession {
- unWaiSession :: Session a
- runWaiSession :: WaiSession a -> Application -> IO a
- withApplication :: Application -> WaiSession a -> IO a
- getApp :: WaiSession Application
- formatHeader :: Header -> String
Documentation
type WaiExpectation = WaiSession () Source
An expectation in the WaiSession
monad. Failing expectations are
communicated through exceptions (similar to Expectation
and
Assertion
).
newtype WaiSession a Source
A WAI test
session that carries the Application
under test an some client state.
runWaiSession :: WaiSession a -> Application -> IO a Source
withApplication :: Application -> WaiSession a -> IO a Source
formatHeader :: Header -> String Source