wip basic error response
This commit is contained in:
parent
4cbf3c722c
commit
0549bb098a
4 changed files with 72 additions and 41 deletions
|
|
@ -100,6 +100,9 @@ let is_supported_lang lang = Array.mem lang supported_lang_arr
|
|||
let is_supported_ext ext = Array.mem ext supported_ext_arr
|
||||
let is_supported_mimetype mime = Array.mem mime supported_mimetype_arr
|
||||
|
||||
(* todo
|
||||
- put content in a matrix instead?
|
||||
- better types to force valid params? *)
|
||||
(* ! lang and mime must be supported *)
|
||||
let get_content ~lang ~mime t =
|
||||
let etag = Headers_lib.Etag.to_raw_string (etag t) in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue