Skip to content

Commit

Permalink
Merge pull request #1013 from mefyl/fix/cohttp-server-signature
Browse files Browse the repository at this point in the history
cohttp-lwt: Preserve extended signature of `IO` in `Server.S`.
  • Loading branch information
mseri committed Jan 5, 2024
2 parents 537c9cd + e87e223 commit 4a9361e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -2,6 +2,7 @@

- cohttp-eio: Don't blow up Server on client disconnections. (mefyl #1011)
- cohttp-eio: Match body encoding with headers. (mefyl #1012)
- cohttp-lwt: Preserve extended `Server.S.IO` signature. (mefyl #1013)

## v6.0.0~beta1 (2023-10-27)
- cohttp-eio: move new Cohttp.{Client,Server} modules under Cohttp.Generic (mseri #1003)
Expand Down
3 changes: 2 additions & 1 deletion cohttp-lwt/src/s.ml
Expand Up @@ -223,7 +223,8 @@ end

(** The [Server] module implements a pipelined HTTP/1.1 server. *)
module type Server = sig
include Cohttp.Generic.Server.S with type body = Body.t and type 'a IO.t = 'a Lwt.t
module IO : IO
include Cohttp.Generic.Server.S with type body = Body.t and module IO := IO

val resolve_local_file : docroot:string -> uri:Uri.t -> string
[@@deprecated "Please use Cohttp.Path.resolve_local_file. "]
Expand Down

0 comments on commit 4a9361e

Please sign in to comment.