diff --git a/CHANGES.md b/CHANGES.md index 8aaa01936..a3f2a708c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,6 @@ ## Unreleased +- cohttp-eio: client: use permissive argument type for make_generic - cohttp-eio: Improve error handling in example server (talex5 #1023) - cohttp-eio: Don't blow up `Server.callback` on client disconnections. (mefyl #1015) - http: Fix assertion in `Source.to_string_trim` when `pos <> 0` (mefyl #1017) diff --git a/cohttp-eio/src/client.mli b/cohttp-eio/src/client.mli index 81e7dc5d8..6c3fcee6a 100644 --- a/cohttp-eio/src/client.mli +++ b/cohttp-eio/src/client.mli @@ -24,6 +24,6 @@ val make : - URIs of the form "httpunix://unix-path/http-path" connect to the given Unix path. *) -val make_generic : (sw:Switch.t -> Uri.t -> _ Eio.Net.stream_socket) -> t +val make_generic : (sw:Switch.t -> Uri.t -> Eio.Flow.two_way_ty r) -> t (** [make_generic connect] is an HTTP client that uses [connect] to get the connection to use for a given URI. *)