prepare for 0.13

This commit is contained in:
Simon Cruanes 2023-05-24 15:44:27 -04:00
parent c2b6ac24f4
commit ac17e61a81
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 20 additions and 5 deletions

View file

@ -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`

View file

@ -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 .
*)

View file

@ -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"

View file

@ -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"