http-client 0.4.17 → 0.4.18
raw patch · 3 files changed
+11/−6 lines, 3 files
Files
- ChangeLog.md +4/−0
- Network/HTTP/Client/Manager.hs +6/−5
- http-client.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.4.18++* Deprecate closeManager [#136](https://github.com/snoyberg/http-client/issues/136) [#137](https://github.com/snoyberg/http-client/issues/137)+ ## 0.4.17 * Case insensitive proxy environment variables [#135](https://github.com/snoyberg/http-client/issues/135)
Network/HTTP/Client/Manager.hs view
@@ -162,9 +162,8 @@ | maxCount > currCount = (Cons x (currCount + 1) now l, Nothing) | otherwise = (l, Just x) --- | Create a 'Manager'. You may manually call 'closeManager' to shut it down,--- or allow the @Manager@ to be shut down automatically based on garbage--- collection.+-- | Create a 'Manager'. The @Manager@ will be shut down automatically via+-- garbage collection. -- -- Creating a new 'Manager' is a relatively expensive operation, you are -- advised to share a single 'Manager' between requests instead.@@ -306,7 +305,8 @@ -- -- Since 0.1.0 closeManager :: Manager -> IO ()-closeManager = closeManager' . mConns+closeManager _ = return ()+{-# DEPRECATED closeManager "Manager will be closed for you automatically when no longer in use" #-} closeManager' :: I.IORef ConnsMap -> IO ()@@ -320,7 +320,8 @@ -- -- Since 0.2.1 withManager :: ManagerSettings -> (Manager -> IO a) -> IO a-withManager settings = bracket (newManager settings) closeManager+withManager settings f = newManager settings >>= f+{-# DEPRECATED withManager "Use newManager instead" #-} safeConnClose :: Connection -> IO () safeConnClose ci = connectionClose ci `catch` \(_ :: IOException) -> return ()
http-client.cabal view
@@ -1,5 +1,5 @@ name: http-client-version: 0.4.17+version: 0.4.18 synopsis: An HTTP client engine, intended as a base layer for more user-friendly packages. description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/http-client>. homepage: https://github.com/snoyberg/http-client