prepare for 0.5

This commit is contained in:
Simon Cruanes 2020-03-25 23:25:15 -04:00
parent 4023a5ab79
commit 1d309abca6
5 changed files with 16 additions and 9 deletions

View file

@ -1,4 +1,11 @@
## 0.5
- new `tiny_httpd_camlzip` library for handling `deflate` compression
- feat: expose `Headers.empty`
- fix: use the non-query path for routing
- feat(util): add some query related utils
## 0.4
- easy accessor to the query parameters in path

View file

@ -82,15 +82,15 @@ module Buf_ : sig
val bytes_slice : t -> bytes
(** Access underlying slice of bytes.
@since NEXT_RELEASE *)
@since 0.5 *)
val contents_and_clear : t -> string
(** Get contents of the buffer and clear it.
@since NEXT_RELEASE *)
@since 0.5 *)
val add_bytes : t -> bytes -> int -> int -> unit
(** Append given bytes slice to the buffer.
@since NEXT_RELEASE *)
@since 0.5 *)
end
(** {2 Generic stream of data}
@ -186,7 +186,7 @@ module Headers : sig
val empty : t
(** Empty list of headers
@since NEXT_RELEASE *)
@since 0.5 *)
val get : ?f:(string->string) -> string -> t -> string option
(** [get k headers] looks for the header field with key [k].

View file

@ -15,11 +15,11 @@ val percent_decode : string -> string option
val split_query : string -> string * string
(** Split a path between the path and the query
@since NEXT_RELEASE *)
@since 0.5 *)
val get_non_query_path : string -> string
(** get the part of the path that is not the query parameters.
@since NEXT_RELEASE *)
@since 0.5 *)
val get_query : string -> string
(** Obtain the query part of a path.

View file

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

View file

@ -1,9 +1,9 @@
opam-version: "2.0"
version: "0.4"
version: "0.5"
authors: ["Simon Cruanes"]
maintainer: "simon.cruanes.2007@m4x.org"
license: "MIT"
description: "Interface to camlzip for tiny_httpd"
synopsis: "Interface to camlzip for tiny_httpd"
build: [
["dune" "build" "@install" "-p" name "-j" jobs]
["dune" "build" "@doc" "-p" name] {with-doc}