mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
prepare for 0.5
This commit is contained in:
parent
4023a5ab79
commit
1d309abca6
5 changed files with 16 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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].
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue