Skip to content

Commit

Permalink
prepare for 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Nov 17, 2020
1 parent 2a955bc commit a35b063
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/Tiny_httpd.mli
Original file line number Diff line number Diff line change
Expand Up @@ -400,24 +400,24 @@ 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"],
and [route] matches ["bar/…"]. *)

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} *)
Expand Down
2 changes: 1 addition & 1 deletion tiny_httpd.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.6"
version: "0.7"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tiny_httpd_camlzip.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.6"
version: "0.7"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
Expand Down

0 comments on commit a35b063

Please sign in to comment.