MTE unikernel with Mkernel+Mnet+Vifu
This commit is contained in:
parent
76662bf23c
commit
a23e59dfca
31 changed files with 535 additions and 376 deletions
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
let aux asset req _server _env =
|
||||
let etag = Assets.etag asset in
|
||||
let headers = Vif.Request.headers req in
|
||||
let headers = Vifu.Request.headers req in
|
||||
let has_matching_etag =
|
||||
match Vif.Headers.get headers "if-none-match" with
|
||||
match Vifu.Headers.get headers "if-none-match" with
|
||||
| None -> Ok false
|
||||
| Some s ->
|
||||
Headers_lib.If_none_match.parse s
|
||||
|
|
@ -19,7 +19,7 @@ let aux asset req _server _env =
|
|||
let compression = Headers.select_encoding headers in
|
||||
let data = Assets.get_content ~mime ~lang asset in
|
||||
(* -- *)
|
||||
let open Vif.Response in
|
||||
let open Vifu.Response in
|
||||
let open Syntax in
|
||||
let* () = with_string ?compression req data in
|
||||
let* () =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue