···2626 association lists encoded as JSON objects. *)
27272828val env_jsont : env Jsont.t
2929-(** JSON codec for [KEY=VALUE] environment variable strings. *)
2929+(** [env_jsont] is a JSON codec for [KEY=VALUE] environment variable strings. *)
30303131val set_jsont : set Jsont.t
3232(** JSON codec for sets encoded as JSON objects with empty values. *)
···3535(** JSON codec for the empty object. *)
36363737val v2_jsont : v2 Jsont.t
3838-(** JSON codec that expects [schemaVersion] to be [2]. *)
3838+(** [v2_jsont] is a JSON codec that expects [schemaVersion] to be [2]. *)
39394040val rfc_6838_jsont : rfc_6838 Jsont.t
4141(** JSON codec for RFC 6838 media type strings. *)
···4646(** {1 Errors} *)
47474848val error : ('a, Format.formatter, unit, ('b, string) result) format4 -> 'a
4949-(** [error fmt ...] returns [Error msg]. *)
4949+(** [error fmt] returns [Error msg]. *)
50505151val error_msg :
5252 ('a, Format.formatter, unit, ('b, [ `Msg of string ]) result) format4 -> 'a
5353-(** [error_msg fmt ...] returns [Error (`Msg msg)]. *)
5353+(** [error_msg fmt] returns [Error (`Msg msg)]. *)
54545555val unwrap : ('a, [ `Msg of string ]) result -> ('a, string) result
5656(** [unwrap r] converts [`Msg] errors to plain strings. *)
+2
src/spec/content_type.ml
···8080 let ps = List.map (fun (k, v) -> k ^ "=" ^ v) t.parameters in
8181 String.concat ~sep:"; " (p :: ps)
82828383+let pp ppf t = Fmt.string ppf (to_string t)
8484+8385let jsont =
8486 Jsont.map ~kind:"content_type"
8587 ~dec:(fun s ->
+3
src/spec/content_type.mli
···10101111val to_string : t -> string
1212(** [to_string t] serializes the content type to its string representation. *)
1313+1414+val pp : t Fmt.t
1515+(** [pp ppf t] pretty-prints the content type. *)