mirage / ocaml-cohttp

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

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

Closed crackcomm closed 3 months ago

crackcomm commented 3 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.