Skip to content

Commit a35b063

Browse files
committed
prepare for 0.7
1 parent 2a955bc commit a35b063

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 0.7
2+
3+
- feat: add `rest_of_path_urlencoded` and rename `rest` to `rest_of_path`
4+
- feat: `http_of_dir`: redirect to index.html if present
5+
- fix: `http_of_dir`: do not url-encode '/' in paths
6+
- feat: add `Route.rest` to match the rest of the path
7+
- feat: printing routes
18

29
## 0.6
310

src/Tiny_httpd.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,24 +400,24 @@ module Route : sig
400400
val rest_of_path : (string -> 'a, 'a) t
401401
(** Matches a string, even containing ['/']. This will match
402402
the entirety of the remaining route.
403-
@since NEXT_RELEASE *)
403+
@since 0.7 *)
404404

405405
val rest_of_path_urlencoded : (string -> 'a, 'a) t
406406
(** Matches a string, even containing ['/'], an URL-decode it.
407407
This will match the entirety of the remaining route.
408-
@since NEXT_RELEASE *)
408+
@since 0.7 *)
409409

410410
val (@/) : ('a, 'b) comp -> ('b, 'c) t -> ('a, 'c) t
411411
(** [comp / route] matches ["foo/bar/…"] iff [comp] matches ["foo"],
412412
and [route] matches ["bar/…"]. *)
413413

414414
val pp : Format.formatter -> _ t -> unit
415415
(** Print the route.
416-
@since NEXT_RELEASE *)
416+
@since 0.7 *)
417417

418418
val to_string : _ t -> string
419419
(** Print the route.
420-
@since NEXT_RELEASE *)
420+
@since 0.7 *)
421421
end
422422

423423
(** {2 Server} *)

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.6"
2+
version: "0.7"
33
authors: ["Simon Cruanes"]
44
maintainer: "[email protected]"
55
license: "MIT"

tiny_httpd_camlzip.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.6"
2+
version: "0.7"
33
authors: ["Simon Cruanes"]
44
maintainer: "[email protected]"
55
license: "MIT"

0 commit comments

Comments
 (0)