prepare for 0.9

This commit is contained in:
Simon Cruanes 2021-07-18 00:07:43 -04:00
parent 6c810fb0ed
commit 9961bd1b29
4 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,8 @@
## 0.9
- support handlers that stream server-sent events to client
## 0.8 ## 0.8
- bump to ocaml 4.04 - bump to ocaml 4.04

View file

@ -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/} and {{: https://jvns.ca/blog/2021/01/12/day-36--server-sent-events-are-cool--and-a-fun-bug/}
this blog post}. this blog post}.
@since NEXT_RELEASE @since 0.9
*) *)
module type SERVER_SENT_GENERATOR = sig module type SERVER_SENT_GENERATOR = sig
val set_headers : Headers.t -> unit val set_headers : Headers.t -> unit
@ -594,7 +594,7 @@ end
type server_sent_generator = (module SERVER_SENT_GENERATOR) type server_sent_generator = (module SERVER_SENT_GENERATOR)
(** Server-sent event generator (** Server-sent event generator
@since NEXT_RELEASE *) @since 0.9 *)
val add_route_server_sent_handler : val add_route_server_sent_handler :
?accept:(unit Request.t -> (unit, Response_code.t * string) result) -> ?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). This handler stays on the original thread (it is synchronous).
@since NEXT_RELEASE *) @since 0.9 *)
(** {2 Run the server} *) (** {2 Run the server} *)

View file

@ -1,5 +1,5 @@
opam-version: "2.0" opam-version: "2.0"
version: "0.8" version: "0.9"
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org" maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT" license: "MIT"

View file

@ -1,5 +1,5 @@
opam-version: "2.0" opam-version: "2.0"
version: "0.8" version: "0.9"
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org" maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT" license: "MIT"