package yocaml_unix

  1. Overview
  2. Docs

Source file yocaml_unix.ml

1
2
3
4
5
6
7
8
9
10
11
module R = Yocaml.Runtime.Make (Runtime)

let execute program = R.execute program

let serve ~filepath ~port task =
  Logs.info (fun pp ->
    pp "Server running [http://localhost:%d], serving [%s]" port filepath);
  Server.server filepath port task
;;

include Runtime