Skip to content

Commit

Permalink
prepare for 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed May 24, 2023
1 parent c2b6ac2 commit ac17e61
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
6 changes: 3 additions & 3 deletions src/Tiny_httpd_server.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 .
*)

Expand Down
2 changes: 1 addition & 1 deletion tiny_httpd.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.12"
version: "0.13"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tiny_httpd_camlzip.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.12"
version: "0.13"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
Expand Down

0 comments on commit ac17e61

Please sign in to comment.