Skip to content

Commit

Permalink
Cohttp_eio: Relax requirement on Server.connection_handler.
Browse files Browse the repository at this point in the history
	Server.connection_handler does not rely on its argument being
        a socket, a two way flow is sufficient. Relaxing the type
        constraint enables eg. unit testing with in-memory buffer.
  • Loading branch information
mefyl committed Jun 12, 2023
1 parent ee1ba0b commit 6e89600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohttp-eio/src/cohttp_eio.mli
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module Server : sig
val connection_handler :
handler ->
#Eio.Time.clock ->
#Eio.Net.stream_socket ->
#Eio.Flow.two_way ->
Eio.Net.Sockaddr.stream ->
unit
(** [connection_handler request_handler] is a connection handler, suitable for
Expand Down

0 comments on commit 6e89600

Please sign in to comment.