wai-extra-3.1.17: Provides some basic WAI handlers and middleware.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Wai.Test

Synopsis

Session

withSession :: Application -> Session a -> IO a Source #

Synonym for 'flip runSession'

Client Cookies

Requests

srequest :: SRequest -> Session SResponse Source #

Similar to request, but allows setting the request body as a plain ByteString.

data SRequest Source #

Constructors

SRequest 

Fields

data SResponse Source #

Instances

Instances details
Show SResponse Source # 
Instance details

Defined in Network.Wai.Test

Eq SResponse Source # 
Instance details

Defined in Network.Wai.Test

defaultRequest :: Request #

A default, blank request.

Since: wai-2.0.0

setPath :: Request -> ByteString -> Request Source #

Set whole path (request path + query string).

Assertions