Skip to content

Commit 3ac5510

Browse files
committed
prepare for 0.6
1 parent 80a4dc3 commit 3ac5510

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

CHANGES.md

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

2+
## 0.6
3+
4+
- feat: add `Route.t` construct, deprecate scanf, add more structured path
5+
- feat: use chunked encoding for large string responses, in addition to streams
6+
- refactor(echo): simplify code, use gzip aggressively
7+
- accept http1.0
8+
9+
- fix: do not output a `content-length` for a chunked response
10+
- fix: set `transfer-encoding` header when returning a chunked stream
11+
- fix(zip): handle case where camlzip consumes 0 bytes
12+
- feat(zip): also compress string responses if they're big
13+
- add more debug msg
14+
215
## 0.5
316

417
- new `tiny_httpd_camlzip` library for handling `deflate` compression

src/Tiny_httpd.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ module Request : sig
227227
and headers are read; then it has a stream body; then the body might be
228228
entirely read as a string via {!read_body_full}.
229229
230-
The field [query] was added @since NEXT_RELEASE and contains
230+
The field [query] was added @since 0.6 and contains
231231
the query parameters in ["?foo=bar,x=y"]
232232
The field [path_components] is the part of the path that precedes [query]
233-
and is split on ["/"] and was added @since NEXT_RELEASE
233+
and is split on ["/"] and was added @since 0.6
234234
*)
235235

236236
val pp : Format.formatter -> string t -> unit
@@ -373,7 +373,7 @@ end
373373
(** {2 Routing}
374374
375375
Basic type-safe routing.
376-
@since NEXT_RELEASE *)
376+
@since 0.6 *)
377377
module Route : sig
378378
type ('a, 'b) comp
379379
(** An atomic component of a path *)
@@ -528,7 +528,7 @@ val add_route_handler_stream :
528528
is a stream of bytes that has not been read yet.
529529
This is useful when one wants to stream the body directly into a parser,
530530
json decoder (such as [Jsonm]) or into a file.
531-
@since NEXT_RELEASE *)
531+
@since 0.6 *)
532532

533533
val stop : t -> unit
534534
(** Ask the server to stop. This might not have an immediate effect

src/Tiny_httpd_util.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ val split_query : string -> string * string
1919

2020
val split_on_slash : string -> string list
2121
(** Split a string on ['/'], remove the trailing ['/'] if any.
22-
@since NEXT_RELEASE *)
22+
@since 0.6 *)
2323

2424
val get_non_query_path : string -> string
2525
(** get the part of the path that is not the query parameters.

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

0 commit comments

Comments
 (0)