diff --git a/CHANGES.md b/CHANGES.md index c411d56b..870f38e3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,8 @@ +## 0.9 + +- support handlers that stream server-sent events to client + ## 0.8 - bump to ocaml 4.04 diff --git a/src/Tiny_httpd.mli b/src/Tiny_httpd.mli index 45024687..462b1121 100644 --- a/src/Tiny_httpd.mli +++ b/src/Tiny_httpd.mli @@ -573,7 +573,7 @@ val add_path_handler_stream : and {{: https://jvns.ca/blog/2021/01/12/day-36--server-sent-events-are-cool--and-a-fun-bug/} this blog post}. - @since NEXT_RELEASE + @since 0.9 *) module type SERVER_SENT_GENERATOR = sig val set_headers : Headers.t -> unit @@ -594,7 +594,7 @@ end type server_sent_generator = (module SERVER_SENT_GENERATOR) (** Server-sent event generator - @since NEXT_RELEASE *) + @since 0.9 *) val add_route_server_sent_handler : ?accept:(unit Request.t -> (unit, Response_code.t * string) result) -> @@ -612,7 +612,7 @@ val add_route_server_sent_handler : This handler stays on the original thread (it is synchronous). - @since NEXT_RELEASE *) + @since 0.9 *) (** {2 Run the server} *) diff --git a/tiny_httpd.opam b/tiny_httpd.opam index 92d51273..07d0fa62 100644 --- a/tiny_httpd.opam +++ b/tiny_httpd.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.8" +version: "0.9" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" diff --git a/tiny_httpd_camlzip.opam b/tiny_httpd_camlzip.opam index 29e36689..56455bca 100644 --- a/tiny_httpd_camlzip.opam +++ b/tiny_httpd_camlzip.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.8" +version: "0.9" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT"