Arcade.Web.Glue
Functions
fnpost_jsonpost_json(url : String, body : String, timeout_ms : Int, reply : (Int, String) -> (), fail : (Bool, String) -> ()) : ()#
POST a JSON body to url, aborted after timeout_ms. reply gets the HTTP status and body of any answer; fail gets (timed out, the browser's message, "" when it gave none) when there was no HTTP answer.
fn size_canvas(canvas : Js.Dom.Node, w : Float, h : Float, dpr : Float) : () do glue_size_canvas(canvas, w, h, dpr) end