Skip to content

Commit

Permalink
prepare for 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed May 29, 2020
1 parent 80a4dc3 commit 3ac5510
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@

## 0.6

- feat: add `Route.t` construct, deprecate scanf, add more structured path
- feat: use chunked encoding for large string responses, in addition to streams
- refactor(echo): simplify code, use gzip aggressively
- accept http1.0

- fix: do not output a `content-length` for a chunked response
- fix: set `transfer-encoding` header when returning a chunked stream
- fix(zip): handle case where camlzip consumes 0 bytes
- feat(zip): also compress string responses if they're big
- add more debug msg

## 0.5

- new `tiny_httpd_camlzip` library for handling `deflate` compression
Expand Down
8 changes: 4 additions & 4 deletions src/Tiny_httpd.mli
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ module Request : sig
and headers are read; then it has a stream body; then the body might be
entirely read as a string via {!read_body_full}.
The field [query] was added @since NEXT_RELEASE and contains
The field [query] was added @since 0.6 and contains
the query parameters in ["?foo=bar,x=y"]
The field [path_components] is the part of the path that precedes [query]
and is split on ["/"] and was added @since NEXT_RELEASE
and is split on ["/"] and was added @since 0.6
*)

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

val stop : t -> unit
(** Ask the server to stop. This might not have an immediate effect
Expand Down
2 changes: 1 addition & 1 deletion src/Tiny_httpd_util.mli
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ val split_query : string -> string * string

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

val get_non_query_path : string -> string
(** get the part of the path that is not the query parameters.
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.5"
version: "0.6"
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.5"
version: "0.6"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
Expand Down

0 comments on commit 3ac5510

Please sign in to comment.