http-client-tls 0.2.2 → 0.2.3
raw patch · 4 files changed
+17/−13 lines, 4 filesdep ~tlsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: tls
API changes (from Hackage documentation)
Files
- ChangeLog.md +3/−0
- Network/HTTP/Client/TLS.hs +6/−11
- README.md +4/−0
- http-client-tls.cabal +4/−2
+ ChangeLog.md view
@@ -0,0 +1,3 @@+## 0.2.3++* Exception catching cleanup
Network/HTTP/Client/TLS.hs view
@@ -42,20 +42,15 @@ Just NoResponseDataReceived -> True Just IncompleteHeaders -> True _ -> False- , managerWrapIOException =+ , managerWrapIOException = let wrapper se = case fromException se of Just e -> toException $ InternalIOException e- Nothing ->- case fromException se of- Just TLS.Terminated{} -> toException $ TlsException se- _ ->- case fromException se of- Just TLS.HandshakeFailed{} -> toException $ TlsException se- _ ->- case fromException se of- Just TLS.ConnectionNotEstablished -> toException $ TlsException se- _ -> se+ Nothing -> case fromException se of+ Just TLS.Terminated{} -> toException $ TlsException se+ Just TLS.HandshakeFailed{} -> toException $ TlsException se+ Just TLS.ConnectionNotEstablished -> toException $ TlsException se+ _ -> se in handle $ throwIO . wrapper }
+ README.md view
@@ -0,0 +1,4 @@+## http-client-tls++Use the http-client package with the pure-Haskell tls package for secure+connections
http-client-tls.cabal view
@@ -1,5 +1,5 @@ name: http-client-tls-version: 0.2.2+version: 0.2.3 synopsis: http-client backend using the connection package and tls library description: Intended for use by higher-level libraries, such as http-conduit. homepage: https://github.com/snoyberg/http-client@@ -10,6 +10,8 @@ category: Network build-type: Simple cabal-version: >=1.10+extra-source-files: README.md+ ChangeLog.md library exposed-modules: Network.HTTP.Client.TLS@@ -19,7 +21,7 @@ , http-client >= 0.3.5 , connection >= 0.2.2 , network- , tls >=1.1+ , tls >= 1.2 , bytestring default-language: Haskell2010