| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Polysemy.Http.Native
Synopsis
- nativeRequest :: Request -> Request
- convertResponse :: Response b -> Response b
- internalError :: Member (Embed IO) r => IO a -> Sem r (Either HttpError a)
- executeRequest :: Member (Embed IO) r => Manager -> Request -> Sem r (Either HttpError (Response LByteString))
- httpStream :: Members [Embed IO, Log, Resource, Manager] r => Request -> (Response BodyReader -> m (Either HttpError a)) -> Tactical (Http BodyReader) m r (Either HttpError a)
- interpretHttpNativeWith :: Members [Embed IO, Log, Resource, Manager] r => InterpreterFor (Http BodyReader) r
- interpretHttpNative :: Members [Embed IO, Log, Resource] r => InterpreterFor (Http BodyReader) r
Documentation
convertResponse :: Response b -> Response b Source #
executeRequest :: Member (Embed IO) r => Manager -> Request -> Sem r (Either HttpError (Response LByteString)) 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 #
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 using the native Http BodyReaderClient implementation.
BodyReader is an alias for , it is how http-client represents chunks.
This uses the default interpreter for IO ByteStringManager.