http-client backend using the connection package and tls library

Version on this page:0.2.2
LTS Haskell 9.14:
Stackage Nightly 2017-11-25:
Latest on Hackage:
MIT licensed by Michael Snoyman
Maintained by

Module documentation for 0.2.2


Full tutorial docs are available at:

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


  • Also catch TLSError exceptions #273


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

  • Never throw exceptions on 401 status in applyDigestAuth

  • Better exception cleanup behavior


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

  • Better handling of internal exceptions

  • Better exception safety via bracketOnError


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


  • Add mkManagerSettingsContext #228

  • Minor doc updates


  • Add applyDigestAuth


  • Support http-client 0.5

  • Cabal description fix


  • Global manager


  • Exception catching cleanup
Used by 149 packages:
apiary-authenticate, api-builder, atlassian-connect-core, aur-api, ballast, batchd, bitx-bitcoin, cabal-rpm, cerberus, chatwork, circlehs, clit, coinbase-exchange, configuration-tools, consul-haskell, cryptsy-api, DAV, debug-me, dhall, discogs-haskell, DOH, elm-get, elm-package, extralife, fbmessenger-api, feed-collect, flowdock, flowdock-rest, funbot, gdax, giphy-api, github, github-release, github-tools, gitit, gli, google-cloud, habit, hackernews, hackmanager, hailgun, halma-telegram-bot, haskell-neo4j-client, haxl-facebook, hipbot, hoggl, hopenpgp-tools, hsudoku, http-conduit, http-dispatch, hup, hurriyet, hzulip, ihaskell, imm, inspector-wrecker, io-streams-http, koofr-client, kraken, libinfluxdb, liblastfm, lightning-haskell, log-elasticsearch, lxd-client, mackerel-client, madlang, magicbane, mailchimp, mailchimp-subscribe, mandrill, marmalade-upload, marvin, mellon-web, monad-http, mondo, monzo, morte, nakadi-client, nationstates, netease-fm, network-api-support, octane, oidc-client, opensource, pandoc, pdf-slave-server, pia-forward, pinboard, pipes-http, pipes-s3, pocket, postmark, pushover, quickbooks, quiver-http, rakuten, ratel, rattletrap, reddit, Redmine, req, rfc, scholdoc, servant-client, servant-github, servant-haxl-client, servant-pushbullet-client, servant-smsc-ru, slack-notify-haskell, slack-web, soap-tls, solr, stack, stackage-build-plan, stackage-cabal, stackage-curator, stackage-install, stackage-metadata, stackage-setup, stackage-upload, staversion, streaming-utils, strive, swagger-petstore, swagger-test, syncthing-hs, telegram-bot, textlocal, themoviedb, tpb, tweet-hs, twfy-api-client, twilio, vault-tool, vimeta, VKHS, wai-middleware-auth, wai-middleware-crowd, web3, webapi, webfinger-client, werewolf-slack, wrecker, wreq, wreq-sb, yeller, yesod-bin, yesod-platform, zendesk-api
comments powered byDisqus