wip basic error response

This commit is contained in:
Swrup 2025-09-28 22:12:16 +02:00
parent 4cbf3c722c
commit 0549bb098a
4 changed files with 72 additions and 41 deletions

View file

@ -28,3 +28,7 @@ let extension_to_mimetype ext =
(fun (mime, ext') ->
match String.equal ext ext' with false -> None | true -> Some mime)
mimetype_ext_assoc
(* -- pretty printers -- *)
let pp_mime fmt mime = Fmt.pf fmt "%s/%s" (fst mime) (snd mime)
let pp_array pp_item item = Fmt.array ~sep:(Fmt.any ", ") pp_item item