ocaml-cohttp icon indicating copy to clipboard operation
ocaml-cohttp copied to clipboard

Use connection cache instead of Net.ctx as Client.ctx

Open madroach opened this issue 1 year ago • 0 comments

This is a proposal to make the semantics of connection cache and Net.ctx in the Cohttp_lwt.Client module clearer. This change is essentially summarized in cohttp-lwt/src/client.mli:

 module Make (Connection : S.Connection) :
-  S.Client with type ctx = Connection.Net.ctx
+  S.Client with type ctx = S.call

This is just a proof-of-concept on how to fix #1074

madroach avatar Jul 11 '24 11:07 madroach