We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4010f2a commit 748f259Copy full SHA for 748f259
cohttp/src/header.ml
@@ -50,6 +50,8 @@ let is_header_with_list_value =
50
let init () =
51
StringMap.empty
52
53
+let is_empty x = StringMap.is_empty x
54
+
55
let init_with k v =
56
StringMap.singleton (LString.of_string k) [v]
57
cohttp/src/header.mli
@@ -22,6 +22,9 @@ type t [@@deriving sexp]
22
(** Construct a fresh, empty map of HTTP headers *)
23
val init : unit -> t
24
25
+(** Test whether a map is empty or not. *)
26
+val is_empty : t -> unit
27
28
(** Construct a fresh map of HTTP headers with a single key and value entry *)
29
val init_with : string -> string -> t
30
0 commit comments