diff --git a/CHANGES.md b/CHANGES.md index 83d24ac0..f6b17661 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,18 @@ +## 0.13 + +- feat: `Server.run` takes `?after_init` parameter +- remove dep on ounit2 and qtest +- expose `Response.make_void` +- Add OPTIONS method +- use ocamlformat on the code + +- fix: SSE requires no body +- fix: get addr/port from the current socket +- fix: missing closing crlf in chunked streams +- fix: module Html was not exposed +- fix: close stream after Response.output +- fix(tiny-httpd-vfs-pack): allow redirections when fetching resources + ## 0.12 - add dep on `seq` diff --git a/src/Tiny_httpd_server.mli b/src/Tiny_httpd_server.mli index 98b7691f..3ff0eac7 100644 --- a/src/Tiny_httpd_server.mli +++ b/src/Tiny_httpd_server.mli @@ -5,7 +5,7 @@ It is possible to use a thread pool, see {!create}'s argument [new_thread]. - @since NEXT_RELEASE + @since 0.13 *) type buf = Tiny_httpd_buf.t @@ -234,7 +234,7 @@ module Response : sig val make_void : ?headers:Headers.t -> code:int -> unit -> t (** Return a response without a body at all. - @since NEXT_RELEASE *) + @since 0.13 *) val make : ?headers:Headers.t -> (body, Response_code.t * string) result -> t (** [make r] turns a result into a response. @@ -568,7 +568,7 @@ val run : ?after_init:(unit -> unit) -> t -> (unit, exn) result This returns [Ok ()] if the server exits gracefully, or [Error e] if it exits with an error. - @param after_init is called after the server starts listening. since NEXT_RELEASE . + @param after_init is called after the server starts listening. since 0.13 . *) diff --git a/tiny_httpd.opam b/tiny_httpd.opam index b9d166af..083cad56 100644 --- a/tiny_httpd.opam +++ b/tiny_httpd.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.12" +version: "0.13" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" diff --git a/tiny_httpd_camlzip.opam b/tiny_httpd_camlzip.opam index 0bc0ff12..93be4bd0 100644 --- a/tiny_httpd_camlzip.opam +++ b/tiny_httpd_camlzip.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.12" +version: "0.13" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT"