prepare for 0.6

This commit is contained in:
Simon Cruanes 2020-05-28 21:06:19 -04:00
parent 80a4dc3c50
commit 3ac5510e2d
5 changed files with 20 additions and 7 deletions

View file

@ -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 ## 0.5
- new `tiny_httpd_camlzip` library for handling `deflate` compression - new `tiny_httpd_camlzip` library for handling `deflate` compression

View file

@ -227,10 +227,10 @@ module Request : sig
and headers are read; then it has a stream body; then the body might be and headers are read; then it has a stream body; then the body might be
entirely read as a string via {!read_body_full}. 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 query parameters in ["?foo=bar,x=y"]
The field [path_components] is the part of the path that precedes [query] 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 val pp : Format.formatter -> string t -> unit
@ -373,7 +373,7 @@ end
(** {2 Routing} (** {2 Routing}
Basic type-safe routing. Basic type-safe routing.
@since NEXT_RELEASE *) @since 0.6 *)
module Route : sig module Route : sig
type ('a, 'b) comp type ('a, 'b) comp
(** An atomic component of a path *) (** An atomic component of a path *)
@ -528,7 +528,7 @@ val add_route_handler_stream :
is a stream of bytes that has not been read yet. 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, This is useful when one wants to stream the body directly into a parser,
json decoder (such as [Jsonm]) or into a file. json decoder (such as [Jsonm]) or into a file.
@since NEXT_RELEASE *) @since 0.6 *)
val stop : t -> unit val stop : t -> unit
(** Ask the server to stop. This might not have an immediate effect (** Ask the server to stop. This might not have an immediate effect

View file

@ -19,7 +19,7 @@ val split_query : string -> string * string
val split_on_slash : string -> string list val split_on_slash : string -> string list
(** Split a string on ['/'], remove the trailing ['/'] if any. (** Split a string on ['/'], remove the trailing ['/'] if any.
@since NEXT_RELEASE *) @since 0.6 *)
val get_non_query_path : string -> string val get_non_query_path : string -> string
(** get the part of the path that is not the query parameters. (** get the part of the path that is not the query parameters.

View file

@ -1,5 +1,5 @@
opam-version: "2.0" opam-version: "2.0"
version: "0.5" version: "0.6"
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org" maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT" license: "MIT"

View file

@ -1,5 +1,5 @@
opam-version: "2.0" opam-version: "2.0"
version: "0.5" version: "0.6"
authors: ["Simon Cruanes"] authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org" maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT" license: "MIT"