wai-extra-3.0.7.1: Provides some basic WAI handlers and middleware.

Safe HaskellNone
LanguageHaskell98

Network.Wai.Test

Contents

Synopsis

Session

type Session = ReaderT Application (StateT ClientState IO) Source

runSession :: Session a -> Application -> IO a Source

Client Cookies

type ClientCookies = Map ByteString SetCookie Source

Since 3.0.6

setClientCookie :: SetCookie -> Session () Source

Since 3.0.6

Requests

data SRequest Source

Constructors

SRequest 

data SResponse Source

Constructors

SResponse 

Fields

simpleStatus :: Status
 
simpleHeaders :: ResponseHeaders
 
simpleBody :: ByteString
 

defaultRequest :: Request

setPath :: Request -> ByteString -> Request Source

Set whole path (request path + query string).

setRawPathInfo :: Request -> ByteString -> Request Source

Assertions