is not anymore the way to go and the comment needs an update or we need a way to do the recommended action :-)
Note that in any case, this introduce a breaking change as existing code using cohttp.5 has some Lwt_io.close ic that doesn't type anymore. (Discovered by testing the compatibility of https://gitlab.com/nomadic-labs/resto with cohttp.6)
Type
Cohttp.S.IO.ic
is now abstract and (as far as I can see) there is no function provided to "close" one. Therefore eitherhttps://github.com/mirage/ocaml-cohttp/blob/de3900238f6f3cd167fa550c3095e23225147f57/cohttp-lwt/src/s.ml#L293-L294
is not anymore the way to go and the comment needs an update or we need a way to do the recommended action :-)
Note that in any case, this introduce a breaking change as existing code using cohttp.5 has some
Lwt_io.close ic
that doesn't type anymore. (Discovered by testing the compatibility of https://gitlab.com/nomadic-labs/resto with cohttp.6)