packages feed

streaming-utils 0.1.2.2 → 0.1.3.0

raw patch · 2 files changed

+19/−4 lines, 2 filesdep ~streamingdep ~streaming-bytestring

Dependency ranges changed: streaming, streaming-bytestring

Files

Data/ByteString/Streaming/HTTP.hs view
@@ -1,3 +1,4 @@+{-#LANGUAGE OverloadedStrings #-} -- | This module replicates `pipes-http` as closely as will type-check. --  --   Here is an example GET request that streams the response body to standard@@ -122,7 +123,7 @@                     return bs     k readAction  -from :: IO B.ByteString -> ByteString IO ()+-- from :: IO B.ByteString -> ByteString IO () from io = go   where     go = do@@ -130,3 +131,17 @@         unless (B.null bs) $ do             chunk bs             go +            +-- {-| This is a quick method - oleg would call it \'unprofessional\' - to bring a web page in view.+--+-- -}+-- simpleHttp :: String -> ByteString m ()+-- simpleHttp url = do+--     man <- liftIO (newManager tlsManagerSettings)+--     req <- liftIO (parseUrl url)+--     from (withResponse req man responseBody)+--  where+--  setConnectionClose :: Request -> Request+--  setConnectionClose req = req{requestHeaders = ("Connection", "close") : requestHeaders req}++            
streaming-utils.cabal view
@@ -1,5 +1,5 @@ name:                streaming-utils-version:             0.1.2.2+version:             0.1.3.0 synopsis:            http, attoparsec, pipes and conduit utilities for the streaming libraries description:         Experimental http-client, attoparsec, conduit pipes utilities for use with                      the <http://hackage.haskell.org/package/streaming streaming> and @@ -41,8 +41,8 @@                        transformers >=0.4 && <0.5,                         mtl >=2.2 && <2.3,                        attoparsec >=0.13.0.1,-                       streaming > 0.1.2.0 && < 0.1.2.4,-                       streaming-bytestring  > 0.1.2.0 && < 0.1.2.4,+                       streaming >=  0.1.3.0 && <= 0.1.3.5,+                       streaming-bytestring >=  0.1.3.0 && <= 0.1.3.5,                        bytestring,                         pipes >= 4.0 && < 4.2,                        http-client >=0.2 && <0.5,