From a35b063d4159e800f96effd949b4b526e8fdc23a Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 17 Nov 2020 10:43:48 -0500 Subject: [PATCH] prepare for 0.7 --- CHANGES.md | 7 +++++++ src/Tiny_httpd.mli | 8 ++++---- tiny_httpd.opam | 2 +- tiny_httpd_camlzip.opam | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index cf77ee42..8ebb9841 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,10 @@ +## 0.7 + +- feat: add `rest_of_path_urlencoded` and rename `rest` to `rest_of_path` +- feat: `http_of_dir`: redirect to index.html if present +- fix: `http_of_dir`: do not url-encode '/' in paths +- feat: add `Route.rest` to match the rest of the path +- feat: printing routes ## 0.6 diff --git a/src/Tiny_httpd.mli b/src/Tiny_httpd.mli index cf10ede8..a733943c 100644 --- a/src/Tiny_httpd.mli +++ b/src/Tiny_httpd.mli @@ -400,12 +400,12 @@ module Route : sig val rest_of_path : (string -> 'a, 'a) t (** Matches a string, even containing ['/']. This will match the entirety of the remaining route. - @since NEXT_RELEASE *) + @since 0.7 *) val rest_of_path_urlencoded : (string -> 'a, 'a) t (** Matches a string, even containing ['/'], an URL-decode it. This will match the entirety of the remaining route. - @since NEXT_RELEASE *) + @since 0.7 *) val (@/) : ('a, 'b) comp -> ('b, 'c) t -> ('a, 'c) t (** [comp / route] matches ["foo/bar/…"] iff [comp] matches ["foo"], @@ -413,11 +413,11 @@ module Route : sig val pp : Format.formatter -> _ t -> unit (** Print the route. - @since NEXT_RELEASE *) + @since 0.7 *) val to_string : _ t -> string (** Print the route. - @since NEXT_RELEASE *) + @since 0.7 *) end (** {2 Server} *) diff --git a/tiny_httpd.opam b/tiny_httpd.opam index 47c78678..e69bb047 100644 --- a/tiny_httpd.opam +++ b/tiny_httpd.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.6" +version: "0.7" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" diff --git a/tiny_httpd_camlzip.opam b/tiny_httpd_camlzip.opam index f125606c..9a0b8b31 100644 --- a/tiny_httpd_camlzip.opam +++ b/tiny_httpd_camlzip.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.6" +version: "0.7" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT"