From 6203e7a4a7ff8ff0c2ea80b78f029057909f30da Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Thu, 17 Apr 2025 16:31:52 -0400 Subject: [PATCH] prepare for 0.19 --- CHANGES.md | 19 +++++++++++++++++++ dune-project | 2 +- src/core/pool.mli | 2 +- tiny_httpd.opam | 2 +- tiny_httpd_camlzip.opam | 2 +- 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 5ab4a144..5561af63 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,23 @@ +## 0.19 + +- feat(headers): `set` will not reallocate whole list if not needed +- feat(headers): use case insensitive comparison +- fix(response): do not override "content-length" in raw response +- feat pool: expose `acquire/release` for advanced uses + +## 0.18 + +- feat: add ?head_middlewares to `create` +- add content-type header for prometheus endpoint +- new flag ?enable_logging to disable regular logs (not debug) +- new sublibrary to deal with multipart-form-data +- feat response: add `pp_with`; have `pp` hide set-cookie headers + +- fix percent encoding for < 0x10 chars +- Processing to fix incompatible -O and gcc flags +- fix: make check for 'Connection: Upgrade' header case-insensitive + ## 0.17 - add optional middlewares to tiny_httpd_ws diff --git a/dune-project b/dune-project index f6c2ebf3..6446bd94 100644 --- a/dune-project +++ b/dune-project @@ -4,7 +4,7 @@ (authors c-cube) (maintainers c-cube) -(version 0.18) +(version 0.19) (source (github c-cube/tiny_httpd)) (homepage https://github.com/c-cube/tiny_httpd/) (license MIT) diff --git a/src/core/pool.mli b/src/core/pool.mli index 99c68fca..dcb8fd6c 100644 --- a/src/core/pool.mli +++ b/src/core/pool.mli @@ -27,7 +27,7 @@ val with_resource : 'a t -> ('a -> 'b) -> 'b (** Low level control over the pool. This is easier to get wrong (e.g. releasing the same resource twice) so use with caution. - @since NEXT_RELEASE *) + @since 0.18 *) module Raw : sig val acquire : 'a t -> 'a val release : 'a t -> 'a -> unit diff --git a/tiny_httpd.opam b/tiny_httpd.opam index 1225ebc7..1b71695c 100644 --- a/tiny_httpd.opam +++ b/tiny_httpd.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.18" +version: "0.19" synopsis: "Minimal HTTP server using threads" maintainer: ["c-cube"] authors: ["c-cube"] diff --git a/tiny_httpd_camlzip.opam b/tiny_httpd_camlzip.opam index 5a1d44f0..09d3511a 100644 --- a/tiny_httpd_camlzip.opam +++ b/tiny_httpd_camlzip.opam @@ -1,6 +1,6 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.18" +version: "0.19" synopsis: "Interface to camlzip for tiny_httpd" maintainer: ["c-cube"] authors: ["c-cube"]