Default TLS-enabled manager settings
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
- Packagehttp-client-tls-0.3.6.4
- Exports11
- LanguageHaskell2010
- LicenceMIT
- SourceTLS.hs
Settings
5 declarationsCreate a TLS-enabled ManagerSettings with the given TLSSettings and SockSettings
Same as mkManagerSettings, but also takes an optional ConnectionContext. Providing this externally can be an optimization, though that may change in the future. For more information, see:
Load up a new TLS manager with default settings, respecting proxy environment variables.
Load up a new TLS manager based upon specified settings, respecting proxy environment variables.
Digest authentication
4 declarationsapplyDigestAuth :: (MonadIO m, MonadThrow n)=> ByteStringusername
-> ByteStringpassword
-> Request-> Manager-> 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.
Generated by applyDigestAuth when it is unable to apply the digest credentials to the request.
Constructors
Instances2Show, Exception
Show DigestAuthExceptionDefined in http-client-tls-0.3.6.4 · Network.HTTP.Client.TLSException DigestAuthExceptionDefined in http-client-tls-0.3.6.4 · Network.HTTP.Client.TLS
Detailed explanation for failure for DigestAuthException
Instances4Eq, Ord, Read, Show
Eq DigestAuthExceptionDetailsDefined in http-client-tls-0.3.6.4 · Network.HTTP.Client.TLSOrd DigestAuthExceptionDetailsDefined in http-client-tls-0.3.6.4 · Network.HTTP.Client.TLSRead DigestAuthExceptionDetailsDefined in http-client-tls-0.3.6.4 · Network.HTTP.Client.TLSShow DigestAuthExceptionDetailsDefined in http-client-tls-0.3.6.4 · Network.HTTP.Client.TLS
User friendly display of a DigestAuthException
Global manager
2 declarationsGet the current global Manager
Set the current global Manager