servant-client-core-0.18.3: Core functionality and class for client function generation for servant APIs
Safe HaskellNone
LanguageHaskell2010

Servant.Client.Core.RunClient

Description

Types for possible backends to run client-side Request queries

Synopsis

Documentation

class Monad m => RunClient m where Source #

Methods

runRequestAcceptStatus :: Maybe [Status] -> Request -> m Response Source #

How to make a request, with an optional list of status codes to not throw exceptions for (default: [200..299]).

throwClientError :: ClientError -> m a Source #

Instances

Instances details
ClientF ~ f => RunClient (Free f) Source # 
Instance details

Defined in Servant.Client.Core.RunClient

runRequest :: RunClient m => Request -> m Response Source #

How to make a request.

data ClientF a Source #

ClientF cannot stream.

Compare to RunClient.

Instances

Instances details
Functor ClientF Source # 
Instance details

Defined in Servant.Client.Core.RunClient

Methods

fmap :: (a -> b) -> ClientF a -> ClientF b #

(<$) :: a -> ClientF b -> ClientF a #