Safe Haskell | None |
---|---|
Language | Haskell2010 |
Support for making connections via the connection package and, in turn, the tls package suite.
Recommended reading: https://haskell-lang.org/library/http-client
- tlsManagerSettings :: ManagerSettings
- mkManagerSettings :: TLSSettings -> Maybe SockSettings -> ManagerSettings
- applyDigestAuth :: MonadIO m => ByteString -> ByteString -> Request -> Manager -> m (Maybe Request)
- getGlobalManager :: IO Manager
- setGlobalManager :: Manager -> IO ()
Settings
tlsManagerSettings :: ManagerSettings Source #
Default TLS-enabled manager settings
mkManagerSettings :: TLSSettings -> Maybe SockSettings -> ManagerSettings Source #
Create a TLS-enabled ManagerSettings
with the given TLSSettings
and
SockSettings
Digest authentication
:: MonadIO m | |
=> ByteString | username |
-> ByteString | password |
-> Request | |
-> Manager | |
-> m (Maybe 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
.
Since: 0.3.1