Skip to content

Commit

Permalink
prepare for 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Mar 26, 2020
1 parent 4023a5a commit 1d309ab
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/Tiny_httpd.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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].
Expand Down
4 changes: 2 additions & 2 deletions src/Tiny_httpd_util.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.4"
version: "0.5"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
license: "MIT"
Expand Down
4 changes: 2 additions & 2 deletions tiny_httpd_camlzip.opam
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
opam-version: "2.0"
version: "0.4"
version: "0.5"
authors: ["Simon Cruanes"]
maintainer: "[email protected]"
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}
Expand Down

0 comments on commit 1d309ab

Please sign in to comment.