HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehttp-client-tls-0.3.6.4Haskell2010

Network.HTTP.Client.TLS

Support for making connections via the connection package and, in turn, the tls package suite.

Recommended reading: https://haskell-lang.org/library/http-client

  • 2 types
  • 9 values

Settings

5 declarations

Digest authentication

4 declarations
valueapplyDigestAuth
  1. :: (MonadIO m, MonadThrow n)
  2. => ByteString

    username

  3. -> ByteString

    password

  4. -> Request
  5. -> Manager
  6. -> m (n Request)
#

Apply digest authentication to this request.

Note that this function will need to make an HTTP request to the server in order to get the nonce, thus the need for a Manager and to live in IO. This also means that the request body will be sent to the server. If the request body in the supplied Request can only be read once, you should replace it with a dummy value.

In the event of successfully generating a digest, this will return a Just value. If there is any problem with generating the digest, it will return Nothing.

Instances4Eq, Ord, Read, Show

Global manager

2 declarations