packages feed

http-conduit 2.1.0 → 2.1.1

raw patch · 2 files changed

+14/−1 lines, 2 files

Files

Network/HTTP/Client/Conduit.hs view
@@ -17,6 +17,7 @@     , HasHttpManager (..)       -- * General HTTP client interface     , module Network.HTTP.Client+    , httpLbs       -- * Lower-level conduit functions     , requestBodySource     , requestBodySourceChunked@@ -30,6 +31,7 @@ import           Data.Acquire                 (Acquire, mkAcquire, with) import           Data.ByteString              (ByteString) import qualified Data.ByteString              as S+import qualified Data.ByteString.Lazy         as L import           Data.Conduit                 (ConduitM, Producer, Source,                                                await, yield, ($$+), ($$++)) import           Data.Int                     (Int64)@@ -158,3 +160,14 @@                     | S.null bs -> popper                     | otherwise -> return bs     f popper++-- | Same as 'H.httpLbs', except it uses the @Manager@ in the reader environment.+--+-- Since 2.1.1+httpLbs :: (MonadIO m, HasHttpManager env, MonadReader env m)+        => Request+        -> m (Response L.ByteString)+httpLbs req = do+    env <- ask+    let man = getHttpManager env+    liftIO $ H.httpLbs req man
http-conduit.cabal view
@@ -1,5 +1,5 @@ name:            http-conduit-version:         2.1.0+version:         2.1.1 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>