http-conduit 2.3.0 → 2.3.1
raw patch · 5 files changed
+15/−12 lines, 5 files
Files
- ChangeLog.md +5/−0
- Network/HTTP/Client/Conduit.hs +2/−3
- Network/HTTP/Conduit.hs +4/−6
- Network/HTTP/Simple.hs +3/−2
- http-conduit.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,8 @@+## 2.3.1++* Reexport Query from Network.HTTP.Types+* Rewrite a type signatures of getRequestQueryString and setRequestQueryString with Query+ ## 2.3.0 * conduit 1.3 support
Network/HTTP/Client/Conduit.hs view
@@ -1,6 +1,5 @@-{-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE RankNTypes #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE RankNTypes #-} -- | A new, experimental API to replace "Network.HTTP.Conduit". -- -- For most users, "Network.HTTP.Simple" is probably a better choice. For more
Network/HTTP/Conduit.hs view
@@ -1,7 +1,5 @@-{-# LANGUAGE CPP #-}-{-# LANGUAGE FlexibleContexts #-}-{-# LANGUAGE MultiParamTypeClasses #-}-{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE OverloadedStrings #-} -- | -- -- = Simpler API@@ -31,7 +29,7 @@ -- -- > import Data.Conduit.Binary (sinkFile) -- Exported from the package conduit-extra -- > import Network.HTTP.Conduit--- > import qualified Data.Conduit as C+-- > import Conduit (runConduit, (.|)) -- > import Control.Monad.Trans.Resource (runResourceT) -- > -- > main :: IO ()@@ -40,7 +38,7 @@ -- > manager <- newManager tlsManagerSettings -- > runResourceT $ do -- > response <- http request manager--- > responseBody response C.$$+- sinkFile "google.html"+-- > runConduit $ responseBody response .| sinkFile "google.html" -- -- The following headers are automatically set by this module, and should not -- be added to 'requestHeaders':
Network/HTTP/Simple.hs view
@@ -28,6 +28,7 @@ , httpSource , withResponse -- * Types+ , H.Query , H.Request , H.Response , JSONException (..)@@ -311,13 +312,13 @@ -- | Get the query string parameters -- -- @since 2.1.10-getRequestQueryString :: H.Request -> [(S.ByteString, Maybe S.ByteString)]+getRequestQueryString :: H.Request -> H.Query getRequestQueryString = H.parseQuery . H.queryString -- | Set the query string parameters -- -- @since 2.1.10-setRequestQueryString :: [(S.ByteString, Maybe S.ByteString)] -> H.Request -> H.Request+setRequestQueryString :: H.Query -> H.Request -> H.Request setRequestQueryString = H.setQueryString -- | Set the request body to the given 'H.RequestBody'. You may want to
http-conduit.cabal view
@@ -1,5 +1,5 @@ name: http-conduit-version: 2.3.0+version: 2.3.1 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>