http-client-tls

http-client backend using the connection package and tls library

https://github.com/snoyberg/http-client

Version on this page:0.3.5.3@rev:1
LTS Haskell 22.37:0.3.6.3
Stackage Nightly 2024-10-09:0.3.6.3
Latest on Hackage:0.3.6.3

See all snapshots http-client-tls appears in

MIT licensed by Michael Snoyman
Maintained by [email protected]
This version can be pinned in stack with:http-client-tls-0.3.5.3@sha256:c97c3d88e6318a3056e42e2cd0913d5c4bff381f83341bb6ff06865fd12c8b52,2066

Module documentation for 0.3.5.3

http-client-tls

Full tutorial docs are available at: https://haskell-lang.org/library/http-client

Use the http-client package with the pure-Haskell tls package for secure connections. For the most part, you’ll just want to replace defaultManagerSettings with tlsManagerSettings, e.g.:

import Network.HTTP.Client
import Network.HTTP.Client.TLS

main :: IO ()
main = do
    manager <- newManager tlsManagerSettings
    ...

Changes

0.3.5.3

  • Fix newTlsManager #325

0.3.5.2

  • #289: Keep original TLSSettings when creating a Manager using newTlsManagerWith.

0.3.5.1

  • Also catch TLSError exceptions #273

0.3.5

  • Add newTlsManagerWith #278, which provides a variant of newTlsManager that takes a ManagerSettings to base its settings off of.

0.3.4.2

  • Never throw exceptions on 401 status in applyDigestAuth

0.3.4.1

  • Better exception cleanup behavior

0.3.4

  • Add ‘newTlsManager’ #263, which adds support for respecting socks5:// and socks5h:// http_proxy and https_proxy environment variables.

0.3.3.2

  • Better handling of internal exceptions

0.3.3.1

  • Better exception safety via bracketOnError

0.3.3

  • Add DigestAuthException and generalize applyDigestAuth
  • Global manager uses a shared TLS context (faster init)

0.3.2

  • Add mkManagerSettingsContext #228

0.3.1.1

  • Minor doc updates

0.3.1

  • Add applyDigestAuth

0.3.0

  • Support http-client 0.5

0.2.4.1

  • Cabal description fix

0.2.4

  • Global manager

0.2.3

  • Exception catching cleanup