http-enumerator-0.0.1: HTTP client package with enumerator interface and HTTPS support.

Network.HTTP.Enumerator

Synopsis

Documentation

parseUrl :: Failure InvalidUrlException m => String -> m RequestSource

withHttpEnumerator :: IO a -> IO aSource

The OpenSSL library requires some initialization of variables to be used, and therefore you must call withOpenSSL before using any of its functions. As this library uses OpenSSL, you must use withOpenSSL as well. (As a side note, you'll also want to use the withSocketsDo function for network activity.)

To future-proof this package against switching to different SSL libraries, we re-export withOpenSSL under this name. You can call this function as early as you like; in fact, simply wrapping the do block of your main function is probably best.