A simulated request for testing.
- method : HTTP.Types.Method
- path : String
- headers : HTTP.Types.RequestHeaders
- body : ByteArray
- isSecure : Bool
Instances For
A captured response from testing.
- simpleStatus : HTTP.Types.Status
- simpleHeaders : HTTP.Types.ResponseHeaders
- simpleBody : ByteArray
Instances For
Build a WAI Request from an SRequest.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Run a WAI Application with a simulated request and capture the response.
Runs the Green computation via Green.block.
$$\text{runSession} : \text{Application} \to \text{SRequest} \to \text{IO SResponse}$$
Equations
- One or more equations did not get rendered due to their size.
Instances For
Convenience: GET request.
Equations
- Network.Wai.Test.get app path = Network.Wai.Test.runSession app { path := path }
Instances For
def
Network.Wai.Test.post
(app : Application)
(path : String)
(body : ByteArray)
(contentType : String := "application/octet-stream")
:
Convenience: POST request with body.
Equations
- One or more equations did not get rendered due to their size.