MTE unikernel with Mkernel+Mnet+Vifu
This commit is contained in:
parent
76662bf23c
commit
a23e59dfca
31 changed files with 535 additions and 376 deletions
|
|
@ -4,7 +4,7 @@ let encode_error_detail err =
|
|||
| Ok s -> s
|
||||
|
||||
let respond_json req content status =
|
||||
let open Vif.Response in
|
||||
let open Vifu.Response in
|
||||
let open Syntax in
|
||||
let* () = add ~field:"content-type" "application/json" in
|
||||
let* () = with_string req content in
|
||||
|
|
@ -32,14 +32,14 @@ let ok content req =
|
|||
|
||||
let no_content () =
|
||||
Logs.debug (fun m -> m "no content");
|
||||
let open Vif.Response in
|
||||
let open Vifu.Response in
|
||||
let open Syntax in
|
||||
let* () = empty in
|
||||
respond `No_content
|
||||
|
||||
let not_modified () =
|
||||
Logs.debug (fun m -> m "not modified");
|
||||
let open Vif.Response in
|
||||
let open Vifu.Response in
|
||||
let open Syntax in
|
||||
let* () = empty in
|
||||
respond `Not_modified
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue