-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | http-client backend using the OpenSSL library. -- -- Hackage documentation generation is not reliable. For up to date -- documentation, please see: -- http://www.stackage.org/package/http-client. @package http-client-openssl @version 0.3.3 -- | Support for making connections via the OpenSSL library. module Network.HTTP.Client.OpenSSL -- | Computation of withOpenSSL action initializes the -- OpenSSL library as necessary, and computes action. Every -- application that uses HsOpenSSL must wrap any operations involving -- OpenSSL with withOpenSSL, or they might crash: -- --
-- module Main where -- import OpenSSL -- -- main :: IO () -- main = withOpenSSL $ -- do ... ---- -- Since 0.10.3.5, withOpenSSL is safe to be applied redundantly. -- Library authors may wish to wrap their functions not to force their -- users to think about initialization: -- --
-- get :: URI -> IO Response -- get uri = withOpenSSL $ internalImplementationOfGet uri --withOpenSSL :: IO a -> IO a -- | Create a new Manager using opensslManagerSettings and -- defaultMakeContext with defaultOpenSSLSettings. newOpenSSLManager :: MonadIO m => m Manager -- | Note that it is the caller's responsibility to pass in an appropriate -- context. opensslManagerSettings :: IO SSLContext -> ManagerSettings defaultMakeContext :: OpenSSLSettings -> IO SSLContext data OpenSSLSettings OpenSSLSettings :: [SSLOption] -> VerificationMode -> String -> (SSLContext -> IO ()) -> OpenSSLSettings [osslSettingsOptions] :: OpenSSLSettings -> [SSLOption] [osslSettingsVerifyMode] :: OpenSSLSettings -> VerificationMode [osslSettingsCiphers] :: OpenSSLSettings -> String [osslSettingsLoadCerts] :: OpenSSLSettings -> SSLContext -> IO () -- | Default OpenSSL settings. In particular: -- --