avsm/ocaml-cohttp — pull request #112 by avsm (2014-04-13 17:21:52+00:00)
Title: Switch to using an external Conduit library for connection handling

This moves a lot of the connection setup logic for Lwt and Async out to a separate library, where they can be reused by other protocol libraries. https://github.com/mirage/ocaml-conduit

SSL is particularly complex due to the myriad possibilities of which libraries to link against, so this simplifies Cohttp considerably.

This pull request also adds Lwt SSL server support, but a test case is still needed to verify it works. Note that Async SSL will also not work until a corresponding fix is made to upstream Async SSL (see @yallop 's tree in https://github.com/yallop/async_ssl in the stub-generation branch for a pin of async_ssl that does work with Cohttp).