| ClientError_InvalidContentTypeHeader ClientResponse
-}
-- | There was a connection error, and no response was received
- | ClientError_ClientConnectionectionError Client.HttpException
+ | ClientError_ClientConnectionError Client.HttpException
-- | 'ClientConnection' is 'empty'
| ClientError_EmptyClient
deriving (Eq, Show{-, Generic, Typeable-})
STM.writeTVar cj newCookieJar
pure newRequest
lrRes <-
- liftIO $ catchClientConnectionectionError $
+ liftIO $ catchClientConnectionError $
Client.httpLbs req clientEnv_manager
case lrRes of
Left err -> MC.throw err
MC.throw $ ClientError_FailureResponse clientRes
return clientRes
-catchClientConnectionectionError :: IO a -> IO (Either ClientError a)
-catchClientConnectionectionError action =
+catchClientConnectionError :: IO a -> IO (Either ClientError a)
+catchClientConnectionError action =
Exn.catch (Right <$> action) $ \err ->
- return $ Left $ ClientError_ClientConnectionectionError err
+ return $ Left $ ClientError_ClientConnectionError err
-- ** Type 'ClientResponseStreaming'
newtype ClientResponseStreaming