polysemy-http-0.2.0.0: Polysemy effect for http-client
Safe HaskellNone
LanguageHaskell2010

Polysemy.Http.Strict

Synopsis

Documentation

interpretHttpStrict :: Member (Embed IO) r => [Response LByteString] -> [ByteString] -> InterpreterFor (Http Int) r Source #

In-Memory interpreter for Http. The first parameter is a list of Response. When a request is made, one response is popped of the head and returned. If the list is exhausted, a 502 response is returned.