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

Polysemy.Http.Native

Synopsis

Documentation

nativeRequest :: Request -> Request Source #

Converts a Request to a native Request.

distribEither :: Functor f => Either err (f a) -> Sem (WithTactics e f m r) (f (Either err a)) Source #

interpretHttpNativeWith :: Members [Embed IO, Log, Resource, Manager] r => InterpreterFor (Http BodyReader) r Source #

Same as interpretHttpNative, but the interpretation of Manager is left to the user.

interpretHttpNative :: Members [Embed IO, Log, Resource] r => InterpreterFor (Http BodyReader) r Source #

Interpret Http BodyReader using the native Client implementation. BodyReader is an alias for IO ByteString, it is how http-client represents chunks. This uses the default interpreter for Manager.