From 1d309abca60c9947e4f21e7d808d8a37a743d6c5 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 25 Mar 2020 23:25:15 -0400 Subject: [PATCH] prepare for 0.5 --- CHANGES.md | 7 +++++++ src/Tiny_httpd.mli | 8 ++++---- src/Tiny_httpd_util.mli | 4 ++-- tiny_httpd.opam | 2 +- tiny_httpd_camlzip.opam | 4 ++-- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9a299e1c..6718438e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,11 @@ +## 0.5 + +- new `tiny_httpd_camlzip` library for handling `deflate` compression +- feat: expose `Headers.empty` +- fix: use the non-query path for routing +- feat(util): add some query related utils + ## 0.4 - easy accessor to the query parameters in path diff --git a/src/Tiny_httpd.mli b/src/Tiny_httpd.mli index 7af68f0b..488c9616 100644 --- a/src/Tiny_httpd.mli +++ b/src/Tiny_httpd.mli @@ -82,15 +82,15 @@ module Buf_ : sig val bytes_slice : t -> bytes (** Access underlying slice of bytes. - @since NEXT_RELEASE *) + @since 0.5 *) val contents_and_clear : t -> string (** Get contents of the buffer and clear it. - @since NEXT_RELEASE *) + @since 0.5 *) val add_bytes : t -> bytes -> int -> int -> unit (** Append given bytes slice to the buffer. - @since NEXT_RELEASE *) + @since 0.5 *) end (** {2 Generic stream of data} @@ -186,7 +186,7 @@ module Headers : sig val empty : t (** Empty list of headers - @since NEXT_RELEASE *) + @since 0.5 *) val get : ?f:(string->string) -> string -> t -> string option (** [get k headers] looks for the header field with key [k]. diff --git a/src/Tiny_httpd_util.mli b/src/Tiny_httpd_util.mli index 72bfc282..39b1148e 100644 --- a/src/Tiny_httpd_util.mli +++ b/src/Tiny_httpd_util.mli @@ -15,11 +15,11 @@ val percent_decode : string -> string option val split_query : string -> string * string (** Split a path between the path and the query - @since NEXT_RELEASE *) + @since 0.5 *) val get_non_query_path : string -> string (** get the part of the path that is not the query parameters. - @since NEXT_RELEASE *) + @since 0.5 *) val get_query : string -> string (** Obtain the query part of a path. diff --git a/tiny_httpd.opam b/tiny_httpd.opam index ca224e42..27893061 100644 --- a/tiny_httpd.opam +++ b/tiny_httpd.opam @@ -1,5 +1,5 @@ opam-version: "2.0" -version: "0.4" +version: "0.5" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" diff --git a/tiny_httpd_camlzip.opam b/tiny_httpd_camlzip.opam index 95d0ac22..44bf7b17 100644 --- a/tiny_httpd_camlzip.opam +++ b/tiny_httpd_camlzip.opam @@ -1,9 +1,9 @@ opam-version: "2.0" -version: "0.4" +version: "0.5" authors: ["Simon Cruanes"] maintainer: "simon.cruanes.2007@m4x.org" license: "MIT" -description: "Interface to camlzip for tiny_httpd" +synopsis: "Interface to camlzip for tiny_httpd" build: [ ["dune" "build" "@install" "-p" name "-j" jobs] ["dune" "build" "@doc" "-p" name] {with-doc}