Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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 and some client state.
Instances
runWaiSession :: WaiSession a -> Application -> IO a Source #
withApplication :: Application -> WaiSession a -> IO a Source #
formatHeader :: Header -> String Source #