Module
Hyper.Test.TestServer
- Package
- purescript-hyper
- Repository
- owickstrom/hyper
#TestRequest Source
newtype TestRequest
Constructors
TestRequest { body :: String, headers :: Object String, method :: Either Method CustomMethod, url :: String }
Instances
(Monad m) => ReadableBody TestRequest m String
(Monad m) => Request TestRequest m
#defaultRequest Source
defaultRequest :: { body :: String, headers :: Object String, method :: Either Method CustomMethod, url :: String }
#StringBody Source
#TestResponse Source
data TestResponse b state
Constructors
Instances
Semigroup (TestResponse b state)
Monoid (TestResponse b state)
(Monad m, MonadTell (TestResponse b state) m) => Response (TestResponse b) m b
#testStatus Source
testStatus :: forall state b. TestResponse b state -> Maybe Status
#testHeaders Source
testHeaders :: forall state b. TestResponse b state -> Array Header
#testBodyChunks Source
testBodyChunks :: forall state b. TestResponse b state -> Array b
#testBody Source
testBody :: forall state b. Monoid b => TestResponse b state -> b
#testStringBody Source
testStringBody :: forall state. TestResponse StringBody state -> String
#testServer Source
testServer :: forall state b a m. Monad m => WriterT (TestResponse b state) m a -> m (TestResponse b state)
#resetResponse Source
resetResponse :: forall b a body c req. Conn req (TestResponse body a) c -> Conn req (TestResponse body b) c
- Modules
- Hyper.
Authentication - Hyper.
Authorization - Hyper.
Conn - Hyper.
ContentNegotiation - Hyper.
Cookies - Hyper.
Form - Hyper.
Form. Urlencoded - Hyper.
Header - Hyper.
Middleware - Hyper.
Middleware. Class - Hyper.
Node. BasicAuth - Hyper.
Node. FileServer - Hyper.
Node. Server - Hyper.
Node. Server. Options - Hyper.
Node. Session. InMemory - Hyper.
Node. Test - Hyper.
Request - Hyper.
Response - Hyper.
Session - Hyper.
Status - Hyper.
Test. TestServer