wai-extra-3.1.13.0: 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 2.0.0

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

Set whole path (request path + query string).

Assertions