wip basic error response
This commit is contained in:
parent
4cbf3c722c
commit
0549bb098a
4 changed files with 72 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue