polysemy-http-0.2.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.

convertResponse :: Response b -> Response b Source #

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

Default handler for Stream. Uses bracket to acquire and close the connection, calling Acquire and Release in the corresponding phases.

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.