mirage / ocaml-cohttp

An OCaml library for HTTP clients and servers using Lwt or Async
Other
713 stars 175 forks source link

feat(cohttp-async): add [close_finished] in [Connection] #1067

Closed crackcomm closed 5 months ago

crackcomm commented 5 months ago

This method is useful for Persistent_connection.

I had to resort to let close_finished (conn : t) = Throttle.cleaned (Obj.magic conn), but if you think it's appropriate to extend the API in v6, this function might be a good addition.