Skip to content

Commit 1d309ab

Browse files
committed
prepare for 0.5
1 parent 4023a5a commit 1d309ab

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
## 0.5
3+
4+
- new `tiny_httpd_camlzip` library for handling `deflate` compression
5+
- feat: expose `Headers.empty`
6+
- fix: use the non-query path for routing
7+
- feat(util): add some query related utils
8+
29
## 0.4
310

411
- easy accessor to the query parameters in path

src/Tiny_httpd.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ module Buf_ : sig
8282

8383
val bytes_slice : t -> bytes
8484
(** Access underlying slice of bytes.
85-
@since NEXT_RELEASE *)
85+
@since 0.5 *)
8686

8787
val contents_and_clear : t -> string
8888
(** Get contents of the buffer and clear it.
89-
@since NEXT_RELEASE *)
89+
@since 0.5 *)
9090

9191
val add_bytes : t -> bytes -> int -> int -> unit
9292
(** Append given bytes slice to the buffer.
93-
@since NEXT_RELEASE *)
93+
@since 0.5 *)
9494
end
9595

9696
(** {2 Generic stream of data}
@@ -186,7 +186,7 @@ module Headers : sig
186186

187187
val empty : t
188188
(** Empty list of headers
189-
@since NEXT_RELEASE *)
189+
@since 0.5 *)
190190

191191
val get : ?f:(string->string) -> string -> t -> string option
192192
(** [get k headers] looks for the header field with key [k].

src/Tiny_httpd_util.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ val percent_decode : string -> string option
1515

1616
val split_query : string -> string * string
1717
(** Split a path between the path and the query
18-
@since NEXT_RELEASE *)
18+
@since 0.5 *)
1919

2020
val get_non_query_path : string -> string
2121
(** get the part of the path that is not the query parameters.
22-
@since NEXT_RELEASE *)
22+
@since 0.5 *)
2323

2424
val get_query : string -> string
2525
(** Obtain the query part of a path.

tiny_httpd.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
opam-version: "2.0"
2-
version: "0.4"
2+
version: "0.5"
33
authors: ["Simon Cruanes"]
44
maintainer: "[email protected]"
55
license: "MIT"

tiny_httpd_camlzip.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
opam-version: "2.0"
2-
version: "0.4"
2+
version: "0.5"
33
authors: ["Simon Cruanes"]
44
maintainer: "[email protected]"
55
license: "MIT"
6-
description: "Interface to camlzip for tiny_httpd"
6+
synopsis: "Interface to camlzip for tiny_httpd"
77
build: [
88
["dune" "build" "@install" "-p" name "-j" jobs]
99
["dune" "build" "@doc" "-p" name] {with-doc}

0 commit comments

Comments
 (0)