Network.Wai.Test
Contents
- type Session = ReaderT Application (StateT ClientState IO)
- runSession :: Session a -> Application -> IO a
- request :: Request -> Session SResponse
- srequest :: SRequest -> Session SResponse
- data SRequest = SRequest {}
- data SResponse = SResponse {}
- defaultRequest :: Request
- assertStatus :: Int -> SResponse -> Session ()
- assertContentType :: ByteString -> SResponse -> Session ()
- assertBody :: ByteString -> SResponse -> Session ()
- assertHeader :: CI ByteString -> ByteString -> SResponse -> Session ()
- assertNoHeader :: CI ByteString -> SResponse -> Session ()
Session
runSession :: Session a -> Application -> IO aSource
Requests
Constructors
SRequest | |
Fields |
Constructors
SResponse | |
Fields |
Assertions
assertContentType :: ByteString -> SResponse -> Session ()Source
assertBody :: ByteString -> SResponse -> Session ()Source
assertHeader :: CI ByteString -> ByteString -> SResponse -> Session ()Source
assertNoHeader :: CI ByteString -> SResponse -> Session ()Source