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

Polysemy.Http.Native

Synopsis

Documentation

nativeRequest :: Request -> Request Source #

Converts a Request to a native Request.

convertResponse :: Response b -> Response b Source #

withResponse :: Members [Embed IO, Log, Resource, Manager] r => Request -> (Response BodyReader -> Sem r a) -> Sem r (Either HttpError a) Source #

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.