package mirage
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
The MirageOS library operating system
Install
dune-project
Dependency
Authors
Maintainers
Sources
mirage-4.0.0.tbz
sha256=f804161872de6cf20699364f09d03370ed06aafffb12f1d586190832c73a194d
sha512=75c1c1cac4c6f862c0055381c7ced123785193234b40da8a8e238cb289cba1a4494378587c4edf2ed872aee7fbfc756f84087941c1037ac19cbd1733ff6cca6a
doc/src/mirage.impl/mirage_impl_http.ml.html
Source file mirage_impl_http.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43open Functoria open Mirage_impl_pclock open Mirage_impl_misc open Mirage_impl_conduit open Mirage_impl_resolver type http = HTTP let http = Type.v HTTP type http_client = HTTP_client let http_client = Type.v HTTP_client let connect err _i modname = function | [ conduit ] -> Fmt.str "Lwt.return (%s.listen %s)" modname conduit | _ -> failwith (connect_err err 1) let cohttp_server = let packages = [ package ~min:"4.0.0" ~max:"6.0.0" "cohttp-mirage" ] in impl ~packages ~connect:(connect "http") "Cohttp_mirage.Server.Make" (conduit @-> http) let cohttp_server conduit = cohttp_server $ conduit let cohttp_client = let packages = [ package ~min:"4.0.0" ~max:"6.0.0" "cohttp-mirage" ] in let connect _i modname = function | [ _pclock; resolver; conduit ] -> Fmt.str "Lwt.return (%s.ctx %s %s)" modname resolver conduit | _ -> failwith (connect_err "http" 2) in impl ~packages ~connect "Cohttp_mirage.Client.Make" (pclock @-> resolver @-> conduit @-> http_client) let cohttp_client ?(pclock = default_posix_clock) resolver conduit = cohttp_client $ pclock $ resolver $ conduit let httpaf_server conduit = let packages = [ package "httpaf-mirage" ] in let extra_deps = [ dep conduit ] in impl ~packages ~connect:(connect "httpaf") ~extra_deps "Httpaf_mirage.Server_with_conduit" http
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>