diff --git a/CHANGES.md b/CHANGES.md index 6718438e..cf77ee42 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,17 @@ +## 0.6 + +- feat: add `Route.t` construct, deprecate scanf, add more structured path +- feat: use chunked encoding for large string responses, in addition to streams +- refactor(echo): simplify code, use gzip aggressively +- accept http1.0 + +- fix: do not output a `content-length` for a chunked response +- fix: set `transfer-encoding` header when returning a chunked stream +- fix(zip): handle case where camlzip consumes 0 bytes +- feat(zip): also compress string responses if they're big +- add more debug msg + ## 0.5 - new `tiny_httpd_camlzip` library for handling `deflate` compression diff --git a/src/Tiny_httpd.mli b/src/Tiny_httpd.mli index a8f5fb44..53ea0429 100644 --- a/src/Tiny_httpd.mli +++ b/src/Tiny_httpd.mli @@ -227,10 +227,10 @@ module Request : sig and headers are read; then it has a stream body; then the body might be entirely read as a string via {!read_body_full}. - The field [query] was added @since NEXT_RELEASE and contains + The field [query] was added @since 0.6 and contains the query parameters in ["?foo=bar,x=y"] The field [path_components] is the part of the path that precedes [query] - and is split on ["/"] and was added @since NEXT_RELEASE + and is split on ["/"] and was added @since 0.6 *) val pp : Format.formatter -> string t -> unit @@ -373,7 +373,7 @@ end (** {2 Routing} Basic type-safe routing. - @since NEXT_RELEASE *) + @since 0.6 *) module Route : sig type ('a, 'b) comp (** An atomic component of a path *) @@ -528,7 +528,7 @@ val add_route_handler_stream : is a stream of bytes that has not been read yet. This is useful when one wants to stream the body directly into a parser, json decoder (such as [Jsonm]) or into a file. - @since NEXT_RELEASE *) + @since 0.6 *) val stop : t -> unit (** Ask the server to stop. This might not have an immediate effect diff --git a/src/Tiny_httpd_util.mli b/src/Tiny_httpd_util.mli index 10fd30d7..025d6519 100644 --- a/src/Tiny_httpd_util.mli +++ b/src/Tiny_httpd_util.mli @@ -19,7 +19,7 @@ val split_query : string -> string * string val split_on_slash : string -> string list (** Split a string on ['/'], remove the trailing ['/'] if any. - @since NEXT_RELEASE *) + @since 0.6 *) val get_non_query_path : string -> string (** get the part of the path that is not the query parameters. diff --git a/tiny_httpd.opam b/tiny_httpd.opam index 27893061..47c78678 100644 --- a/tiny_httpd.opam +++ b/tiny_httpd.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.5" +version: "0.6" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" diff --git a/tiny_httpd_camlzip.opam b/tiny_httpd_camlzip.opam index 44bf7b17..f125606c 100644 --- a/tiny_httpd_camlzip.opam +++ b/tiny_httpd_camlzip.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.5" +version: "0.6" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT"