mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-05 19:00:32 -05:00
prepare for 0.7
This commit is contained in:
parent
2a955bcbb4
commit
a35b063d41
4 changed files with 13 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -400,12 +400,12 @@ 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"],
|
||||
|
|
@ -413,11 +413,11 @@ module Route : sig
|
|||
|
||||
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} *)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
opam-version: "2.0"
|
||||
version: "0.6"
|
||||
version: "0.7"
|
||||
authors: ["Simon Cruanes"]
|
||||
maintainer: "simon.cruanes.2007@m4x.org"
|
||||
license: "MIT"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
opam-version: "2.0"
|
||||
version: "0.6"
|
||||
version: "0.7"
|
||||
authors: ["Simon Cruanes"]
|
||||
maintainer: "simon.cruanes.2007@m4x.org"
|
||||
license: "MIT"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue