polysemy-http-0.13.0.1: Polysemy effects for HTTP clients
Safe HaskellSafe-Inferred
LanguageGHC2021

Polysemy.Http.Interpreter.Native

Description

 
Synopsis

Documentation

nativeRequest :: Request -> Request Source #

Converts a Request to a native Request.

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 Network.HTTP.Client implementation. BodyReader is an alias for IO ByteString; it is how http-client represents chunks. This uses the default interpreter for Manager.