Safe Haskell | None |
---|---|
Language | GHC2021 |
Polysemy.Http.Interpreter.Pure
Description
Synopsis
- interpretHttpPure :: forall (r :: EffectRow). Member (Embed IO) r => [Response LByteString] -> [ByteString] -> InterpretersFor '[Http LByteString, State [Response LByteString] :: (Type -> Type) -> Type -> Type, State [ByteString] :: (Type -> Type) -> Type -> Type] r
Documentation
Arguments
:: forall (r :: EffectRow). Member (Embed IO) r | |
=> [Response LByteString] | When a request is made, one response is popped of the list and returned. If the list is exhausted, a 502 response is returned. |
-> [ByteString] | Chunks used for streaming responses. |
-> InterpretersFor '[Http LByteString, State [Response LByteString] :: (Type -> Type) -> Type -> Type, State [ByteString] :: (Type -> Type) -> Type -> Type] r |
In-Memory interpreter for Http
.