mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-05 19:00:32 -05:00
prepare for 0.13
This commit is contained in:
parent
c2b6ac24f4
commit
ac17e61a81
4 changed files with 20 additions and 5 deletions
15
CHANGES.md
15
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`
|
||||
|
|
|
|||
|
|
@ -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 .
|
||||
|
||||
*)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue