http-conduit 2.2.1 → 2.2.2
raw patch · 6 files changed
+18/−5 lines, 6 files
Files
- ChangeLog.md +4/−0
- Network/HTTP/Client/Conduit.hs +1/−1
- Network/HTTP/Conduit.hs +1/−1
- Network/HTTP/Simple.hs +10/−1
- README.md +1/−1
- http-conduit.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 2.2.2++* Add `httpNoBody` to `Network.HTTP.Simple`+ ## 2.2.1 * Add `httpSource` to `Network.HTTP.Simple`
Network/HTTP/Client/Conduit.hs view
@@ -6,7 +6,7 @@ -- For most users, "Network.HTTP.Simple" is probably a better choice. For more -- information, see: ----- <https://github.com/commercialhaskell/jump/blob/master/doc/http-client.md>.+-- <https://haskell-lang.org/library/http-client> -- -- For more information on using this module, please be sure to read the -- documentation in the "Network.HTTP.Client" module.
Network/HTTP/Conduit.hs view
@@ -11,7 +11,7 @@ -- response bodies. For most users, this will be an easier place to start. You -- can read the tutorial at: ----- https://github.com/commercialhaskell/jump/blob/master/doc/http-client.md+-- <https://haskell-lang.org/library/http-client> -- -- = Lower-level API --
Network/HTTP/Simple.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE OverloadedStrings #-} -- | Simplified interface for common HTTP client interactions. Tutorial -- available at--- <https://github.com/commercialhaskell/jump/blob/master/doc/http-client.md>.+-- <https://haskell-lang.org/library/http-client> -- -- Important note: 'H.Request' is an instance of 'Data.String.IsString', and -- therefore recommended usage is to turn on @OverloadedStrings@, e.g.@@ -18,6 +18,7 @@ module Network.HTTP.Simple ( -- * Perform requests httpLBS+ , httpNoBody , httpJSON , httpJSONEither , httpSink@@ -98,6 +99,14 @@ httpLBS req = liftIO $ do man <- H.getGlobalManager H.httpLbs req man++-- | Perform an HTTP request and ignore the response body.+--+-- @since 2.2.2+httpNoBody :: MonadIO m => H.Request -> m (H.Response ())+httpNoBody req = liftIO $ do+ man <- H.getGlobalManager+ H.httpNoBody req man -- | Perform an HTTP request and parse the body as JSON. In the event of an -- JSON parse errors, a 'JSONException' runtime exception will be thrown.
README.md view
@@ -2,6 +2,6 @@ ============ Full tutorial docs are available at:-https://github.com/commercialhaskell/jump/blob/master/doc/http-client.md+https://haskell-lang.org/library/http-client The `Network.HTTP.Conduit.Browser` module has been moved to <http://hackage.haskell.org/package/http-conduit-browser/>
http-conduit.cabal view
@@ -1,5 +1,5 @@ name: http-conduit-version: 2.2.1+version: 2.2.2 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>