Safe Haskell | None |
---|---|
Language | Haskell2010 |
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))
- withResponse :: Members [Embed IO, Log, Resource, Manager] r => Request -> (Response BodyReader -> Sem r a) -> Sem r (Either HttpError a)
- distribEither :: Functor f => Either err (f a) -> Sem (WithTactics e f m r) (f (Either err 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 #
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
using the native Http
BodyReader
Client
implementation.
BodyReader
is an alias for
, it is how http-client represents chunks.
This uses the default interpreter for IO
ByteString
Manager
.