http-conduit-downloader 1.0.23 → 1.0.24
raw patch · 2 files changed
+6/−14 lines, 2 filesdep ~http-clientdep ~http-conduitdep ~networkPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: http-client, http-conduit, network, network-uri
API changes (from Hackage documentation)
+ Network.HTTP.Conduit.Downloader: RawDownloadResult :: Status -> HttpVersion -> ResponseHeaders -> ByteString -> RawDownloadResult
+ Network.HTTP.Conduit.Downloader: data RawDownloadResult
+ Network.HTTP.Conduit.Downloader: rawDownload :: (Request -> ResourceT IO Request) -> Downloader -> String -> Maybe HostAddress -> DownloadOptions -> IO (DownloadResult, Maybe RawDownloadResult)
+ Network.HTTP.Conduit.Downloader: rdrBody :: RawDownloadResult -> ByteString
+ Network.HTTP.Conduit.Downloader: rdrHeaders :: RawDownloadResult -> ResponseHeaders
+ Network.HTTP.Conduit.Downloader: rdrHttpVersion :: RawDownloadResult -> HttpVersion
+ Network.HTTP.Conduit.Downloader: rdrStatus :: RawDownloadResult -> Status
Files
Network/HTTP/Conduit/Downloader.hs view
@@ -56,8 +56,8 @@ module Network.HTTP.Conduit.Downloader ( -- * Download operations urlGetContents, urlGetContentsPost- , download, post, downloadG- , DownloadResult(..), DownloadOptions+ , download, post, downloadG, rawDownload+ , DownloadResult(..), RawDownloadResult(..), DownloadOptions -- * Downloader , DownloaderSettings(..)@@ -455,6 +455,7 @@ C.InvalidChunkHeaders -> DRError "Invalid chunk headers" C.TlsNotSupported -> DRError "TLS not supported" C.IncompleteHeaders -> DRError "Incomplete headers"+ C.InvalidProxyEnvironmentVariable n v -> DRError $ "Invalid proxy environment variable " ++ show n ++ "=" ++ show v bufSize :: Int bufSize = 32 * 1024 - overhead -- Copied from Data.ByteString.Lazy.
http-conduit-downloader.cabal view
@@ -1,6 +1,6 @@ cabal-version: >= 1.6 name: http-conduit-downloader-version: 1.0.23+version: 1.0.24 author: Vladimir Shabanov <vshabanoff@gmail.com> maintainer: Vladimir Shabanov <vshabanoff@gmail.com> homepage: https://github.com/bazqux/http-conduit-downloader@@ -39,20 +39,11 @@ type: git location: https://github.com/bazqux/http-conduit-downloader -flag network-uri- description: Get Network.URI from the network-uri package- default: True- library build-depends:- base == 4.*, http-conduit >= 2.1.2.3, http-client >= 0.3.4, connection, zlib, lifted-base,+ base == 4.*, http-conduit >= 2.1.5, http-client >= 0.4.7, connection, zlib, lifted-base, conduit, resourcet, http-types, data-default, bytestring, mtl,- time, old-locale, HsOpenSSL-- if flag(network-uri)- build-depends: network-uri >= 2.6, network >= 2.6- else- build-depends: network-uri < 2.6, network < 2.6+ time, old-locale, HsOpenSSL, network-uri >= 2.6, network >= 2.6 exposed-modules: Network.HTTP.Conduit.Downloader