The environment in which a request is run.
The baseUrl and makeClientRequest function are used to create a http-client request.
Cookies are then added to that request if a CookieJar is set on the environment.
Finally the request is executed with the manager.
The makeClientRequest function can be used to modify the request to execute and set values which
are not specified on a servant Request like responseTimeout or redirectCount
Constructors
ClientEnvmanager :: ManagerbaseUrl :: BaseUrlmakeClientRequest :: BaseUrl -> Request -> IO Requestthis function can be used to customize the creation of
http-clientrequests fromservantrequests. Default value: defaultMakeClientRequest Note that: 1. makeClientRequest exists to allow overriding operational semantics e.g.responseTimeoutper request, If you need global modifications, you should usemanagerModifyRequest2. the cookieJar, if defined, is being applied after makeClientRequest is called.middleware :: ClientMiddleware
Instances2MonadReader
MonadReader ClientEnv ClientMDefined in servant-client-0.20.2 · Servant.Client.Internal.HttpClientMonadReader ClientEnv ClientMDefined in servant-client-0.20.2 · Servant.Client.Internal.HttpClient.Streaming