http-conduit 2.3.4 → 2.3.5
raw patch · 3 files changed
+14/−2 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
+ Network.HTTP.Simple: addToRequestQueryString :: Query -> Request -> Request
Files
- ChangeLog.md +4/−0
- Network/HTTP/Simple.hs +8/−0
- http-conduit.cabal +2/−2
ChangeLog.md view
@@ -1,3 +1,7 @@+## 2.3.5++* Adds `addToRequestQueryString` helper function+ ## 2.3.4 * Reexport RequestHeaders from Network.HTTP.Types (what was intended in last version)
Network/HTTP/Simple.hs view
@@ -57,6 +57,7 @@ , setRequestHeaders , setRequestQueryString , getRequestQueryString+ , addToRequestQueryString -- ** Request body , setRequestBody , setRequestBodyJSON@@ -346,6 +347,13 @@ -- @since 2.1.10 setRequestQueryString :: H.Query -> H.Request -> H.Request setRequestQueryString = H.setQueryString++-- | Add to the existing query string parameters.+--+-- @since 2.3.5+addToRequestQueryString :: H.Query -> H.Request -> H.Request+addToRequestQueryString additions req = setRequestQueryString q req+ where q = additions <> getRequestQueryString req -- | Set the request body to the given 'H.RequestBody'. You may want to -- consider using one of the convenience functions in the modules, e.g.
http-conduit.cabal view
@@ -1,5 +1,5 @@ name: http-conduit-version: 2.3.4+version: 2.3.5 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -29,7 +29,7 @@ , conduit >= 1.2 , conduit-extra >= 1.1 , http-types >= 0.7- , http-client >= 0.5.13 && < 0.6+ , http-client >= 0.5.13 && < 0.7 , http-client-tls >= 0.3 && < 0.4 , mtl , unliftio-core