packages feed

http-client-brread-timeout 0.1.1.0 → 0.1.1.1

raw patch · 4 files changed

+15/−12 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Changelog.md view
@@ -1,3 +1,7 @@+### 0.1.1.1++- Refactor module imports.+ ### 0.1.1.0  - Added function *httpLbsBrReadWithCustomTimeout*.
LICENSE view
@@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Alexey Radkov+Copyright (c) 2022-2026 Alexey Radkov  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in
Network/HTTP/Client/BrReadWithTimeout.hs view
@@ -3,7 +3,7 @@ ----------------------------------------------------------------------------- -- | -- Module      :  Network.HTTP.Client.BrReadWithTimeout--- Copyright   :  (c) Alexey Radkov 2022+-- Copyright   :  (c) Alexey Radkov 2022-2026 -- License     :  BSD-style -- -- Maintainer  :  alexey.radkov@gmail.com@@ -25,8 +25,7 @@                                              ,httpLbsBrReadWithTimeout                                              ) where -import           Network.HTTP.Client hiding (HttpExceptionContent (..))-import qualified Network.HTTP.Client as E (HttpExceptionContent (..))+import           Network.HTTP.Client import qualified Network.HTTP.Client.Internal as I (ResponseTimeout (..)                                                    ,mResponseTimeout                                                    )@@ -35,7 +34,7 @@ import           Control.Exception import           System.Timeout --- | Converts 'ResponseTimeout' of the request into the number of microseconds.+-- | Converts t'ResponseTimeout' of the request into the number of microseconds. fromResponseTimeout :: Request -> Manager -> Int fromResponseTimeout req man =     case responseTimeout req of@@ -56,7 +55,7 @@ -- applying a timeout passed in the first parameter as a number of microseconds -- between body read events. ----- Throws 'E.ResponseTimeout' if reading of the next chunk of the response body+-- Throws v'ResponseTimeout' if reading of the next chunk of the response body -- timed out. brReadWithTimeout :: Int -> Request -> BodyReader -> IO ByteString brReadWithTimeout tmo req br = do@@ -64,7 +63,7 @@     case x of         Nothing -> throwIO $ HttpExceptionRequest             req { responseTimeout = I.ResponseTimeoutMicro tmo }-                E.ResponseTimeout+                ResponseTimeout         Just bs -> return bs  -- | This is like 'httpLbs' but with a timeout between body read events.@@ -80,7 +79,7 @@  -- | This is like 'httpLbs' but with a timeout between body read events. ----- The value of the timeout is retrieved from the 'ResponseTimeout' of the+-- The value of the timeout is retrieved from the t'ResponseTimeout' of the -- request. httpLbsBrReadWithTimeout :: Request -> Manager -> IO (Response L.ByteString) httpLbsBrReadWithTimeout req man =
http-client-brread-timeout.cabal view
@@ -1,5 +1,5 @@ name:                   http-client-brread-timeout-version:                0.1.1.0+version:                0.1.1.1 synopsis:       Http client with time-limited brRead description:    Http client with timeouts applied in between body read events.         .@@ -9,18 +9,18 @@ homepage:               https://github.com/lyokha/http-client-brread-timeout license:                MIT license-file:           LICENSE-extra-source-files:     Changelog.md, README.md+extra-doc-files:        Changelog.md, README.md author:                 Alexey Radkov <alexey.radkov@gmail.com> maintainer:             Alexey Radkov <alexey.radkov@gmail.com> stability:              experimental-copyright:              2022 Alexey Radkov+copyright:              2022-2026 Alexey Radkov category:               Network build-type:             Simple cabal-version:          1.20  source-repository head   type:                 git-  location:             https://github.com/lyokha/http-client-brread-timeout+  location:             https://github.com/lyokha/http-client-brread-timeout.git  library   default-language:     Haskell2010